This project presents an AI-based anomaly detection system for identifying defects in images without requiring labeled defect data. The system uses deep learning techniques to learn normal patterns and detect deviations.
- Detects defects without labeled datasets
- Generates anomaly heatmaps
- Provides anomaly score
- Real-time image analysis
- Simple UI using Streamlit
- Pre-trained CNN (Feature Extraction)
- PaDiM (Patch Distribution Modeling) for anomaly detection
- Python
- PyTorch
- OpenCV
- Anomalib
- Streamlit
- User uploads an image
- Image is preprocessed
- CNN extracts features
- PaDiM models normal feature distribution
- System computes anomaly score
- Heatmap highlights defective regions
bash pip install -r requirements.txt streamlit run app.py
project ├── app.py ├── model ├── utils ├── images ├── requirements.txt └── README.md