This project implements defect detection using Autoencoders and Fuzzy C-Means (FCM) clustering instead of traditional K-Means clustering. The model is designed to classify images into defected and non-defected categories.
- Uses Autoencoders for feature extraction.
- Employs FCM clustering for classification.
- Supports image-based defect detection.
- Flask web interface for uploading and analyzing images.
π project_root/
βββ π templates/ # HTML templates for UI
βββ π main.py # Main application logic
βββ π README.md # Documentation
βββ π¦ Defected.zip # Dataset: Defected images
βββ π¦ Non_defected.zip # Dataset: Non-defected images
Install dependencies using:
pip install -r requirements.txt- Extract datasets from
Defected.zipandNon_defected.zip. - Run the Flask app:
python main.py
- Access the Web Interface:
Open
http://127.0.0.1:5000/in your browser.
Instead of K-Means, this project uses Fuzzy C-Means (FCM) for clustering defected vs. non-defected images. This allows for a soft clustering approach, making the model more robust compared to hard-assignment methods like K-Means.