How marwarashwan/industrial-quality-inspection. works
This repository is an image-based manufacturing inspection tool, with a gear-detection and batch-analysis workflow alongside a simpler contour-inspection script. The principal documented workflow reads component images, extracts shape features, classifies gears, and writes annotated images and inspection reports; review labels can feed later training. Most advanced gear functionality is described in src/gear_inspector.py, whose excerpt is incomplete. src/batch_inspector.py references gear_core and synth, which are absent from the supplied tree, so its integration is not mapped. The README’s conveyor rejection capability is aspirational, not evidenced as implemented.
Main entry points: gear_inspector.py Gear Batch Runner · inspector.py Contour Inspector · images Component Images · Output_Results Pics Annotated Images
Components 14
Image Inspection
- Gear Batch Runner
src/gear_inspector.py - Shape Segmentation
src/gear_inspector.py - Shape Features
src/gear_inspector.py - Gear Classification
src/gear_inspector.py - Contour Inspector
src/inspector.py
Gear Learning
- Synthetic Training Data
src/gear_inspector.py - Model Training
src/gear_inspector.py - Trained Model
src/gear_inspector.py
Results and Review
- Review Labels
src/Sample_testing/review_me.csv - Inspection Reports
src/Sample_testing/inspection_summary.csv - Gear Parameters
src/Sample_testing/gear_params.json - Annotated Images
src/Output_Results Pics
Other components
- Operator
- Component Images
src/images
Connections 17
- Operator → Gear Batch Runner: runs batch inspection
- Component Images → Gear Batch Runner: supplies images
- Gear Batch Runner → Shape Segmentation: segments shapes
- Shape Segmentation → Shape Features: extracts contours
- Shape Features → Gear Classification: provides features
- Gear Batch Runner → Gear Classification: classifies parts
- Trained Model → Gear Batch Runner: loads model
- Gear Batch Runner → Inspection Reports: writes report
- Gear Batch Runner → Gear Parameters: writes parameters
- Gear Batch Runner → Annotated Images: writes annotations
- Operator → Contour Inspector: runs inspection
- Component Images → Contour Inspector: supplies image
- Contour Inspector → Annotated Images: saves contours
- Synthetic Training Data → Model Training: provides examples
- Model Training → Trained Model: saves model
- Review Labels → Gear Batch Runner: supplies corrections
- Gear Batch Runner → Model Training: retrain from labels