Industrial defect detection system - detect cracks, scratches, or anomalies in products.
What You’ll Learn
Image Preprocessing - CLAHE, Gaussian blur
Defect Detection - Multiple methods
Template Matching - Comparison with reference
Pass/Fail Logic - Quality decision making
Report Generation - Documenting results
Detection Methods
Method
Best For
Threshold
Dark spots, stains
Edge Detection
Cracks, scratches
Blob Detection
Holes, bubbles
Comparison
Any deviation from reference
Usage
# Run demo with sample images
python main.py --demo# Use camera for real-time inspection
python main.py --camera# Inspect specific image
python main.py --image product.jpg
# With reference image
python main.py --image test.jpg --reference good.jpg