How lucagurima/image_inspector works
Image Inspector is a desktop visual-inspection and dataset-capture application. Operators configure camera profiles and YOLO models, capture or reanalyze product images, review and classify inspection outcomes, and save inspection records. A separate dataset tab captures manually labeled images without inference and queues their paths for an external synchronizer; the README states that the app itself does not upload images. The graph follows documented workflows and shown source references; some UI-to-service wiring is only partially excerpted.
Main entry points: main_window.py Operation and configuration · dataset_tab.py Dataset tab · app.py Application startup · threads.py Capture and inference threads
Components 16
Desktop interface
- Application startup
image_inspector/app.py - Operation and configuration
image_inspector/ui/main_window.py - Dataset tab
image_inspector/ui/dataset_tab.py - Capture and inference threads
image_inspector/ui/threads.py
Inspection runtime
- Basler camera
image_inspector/core/basler_camera.py - Inspection service
image_inspector/core/inspection.py - YOLO model registry
image_inspector/core/yolo_models.py - YOLO prediction
image_inspector/core/yolo_models.py
Dataset collection
- Dataset capture storage
image_inspector/core/dataset_collection.py - Dataset images and metadata
- Export path queue
Settings and records
- Runtime settings
image_inspector/core/runtime.py - User data paths
image_inspector/config.py - Inspection records
image_inspector/core/storage.py
Other components
- Operator
- External synchronizer
Connections 21
- Operator → Application startup: starts
README.md - Application startup → Operation and configuration: opens
image_inspector/app.py - Application startup → Runtime settings: sets up logging
image_inspector/app.py - Operator → Operation and configuration: configures and reviews
README.md - Operation and configuration → Runtime settings: loads and saves
image_inspector/ui/main_window.py - Operation and configuration → Basler camera: connects and captures
image_inspector/ui/main_window.py - Operation and configuration → Inspection service: requests analysis
README.md - Operation and configuration → Inspection records: saves review
README.md - Operation and configuration → Capture and inference threads: dispatches work
image_inspector/ui/main_window.py - Capture and inference threads → Basler camera: captures frames
image_inspector/ui/threads.py - Capture and inference threads → Inspection service: runs inference
image_inspector/ui/threads.py - Inspection service → YOLO model registry: gets models
image_inspector/core/inspection.py - YOLO model registry → YOLO prediction: loads and caches
image_inspector/core/yolo_models.py - Operator → Dataset tab: captures labeled images
README.md - Dataset tab → Basler camera: previews and captures
image_inspector/ui/dataset_tab.py - Dataset tab → Dataset capture storage: saves captures
README.md - Dataset capture storage → Dataset images and metadata: writes images and metadata
README.md - Dataset tab → Export path queue: queues session paths
README.md - Export path queue → External synchronizer: processed externally
README.md - Runtime settings → User data paths: uses data location
image_inspector/core/runtime.py - Inspection records → User data paths: uses inspection directory
image_inspector/core/storage.py