This repository provides 2 approaches to detect anomalies within an image dataset.
- Repository:
image-anomaly-detection
- Duration:
10 days
- Deadline:
13-10-21
- Mission:
Image Anomaly Detection
1. Cumulative Image + Numpy Masking
- cumulative_images.py : This file creates a cumulative image based on given dataset. It converts it into a binary image, draws the contours, and saves it in both train and test dataset.
- train_dice.py : This file trains the dices given during cumulative image creation (train dataset). It then outputs the standard deviation and average for each contour.
- find_defect.py: This file is the last step to detect the anomalies. With numpy masking method, it will measure each contours' standard deviation and average and compare if they are within given threshold and magin. If not, they are outputted as an anomaly.
2. Isolation Forest
- isolationforest.py : Isolation Forest is an outlier detection technique that identifies anomalies instead of normal observations. The advantage of it is that it can be scaled up to handle large, high-dimensional datasets.
- Python3
streamlit run streamlit.py