How gangheejo/redred works
REDRED processes multi-camera shelf video into product inventory changes and a submission CSV. The main workflow is frame inference, camera-level tracking (when enabled), multi-view count fusion, temporal event confirmation, and CSV generation; an alternate event-triggered runner detects interactions before comparing inventory snapshots. The README is only a title, so the product purpose is inferred from source descriptions. Training and spatial-filter modules are represented, but their runtime connections are not established by the excerpts.
Main entry points: run_pipeline.py Frame pipeline · run_event_triggered.py Event-triggered runner · csv_generator.py CSV generator · multi_view_fusion.py View fusion
Components 11
Video analysis
- Frame pipeline
src/run_pipeline.py - Multi-camera tracker
src/tracker.py - View fusion
src/multi_view_fusion.py - Spatial filter
src/spatial_filter.py
Inventory events
- Event-triggered runner
src/run_event_triggered.py - Inventory event detector
src/event_detector.py
Submission output
- CSV generator
src/csv_generator.py - Submission CSV
Model components
- KD trainer
src/kd_trainer.py
Other components
- Operator
- Camera videos
Connections 12
- Operator → Frame pipeline: runs
src/run_pipeline.py - Camera videos → Frame pipeline: provides frames
src/run_pipeline.py - Frame pipeline → Multi-camera tracker: updates tracks
src/run_pipeline.py - Frame pipeline → View fusion: fuses detections
src/run_pipeline.py - Frame pipeline → Inventory event detector: confirms events
src/run_pipeline.py - Frame pipeline → CSV generator: generates CSV
src/run_pipeline.py - CSV generator → Submission CSV: writes
src/csv_generator.py - Operator → Event-triggered runner: runs
src/run_event_triggered.py - Camera videos → Event-triggered runner: provides frames
src/run_event_triggered.py - Event-triggered runner → View fusion: fuses detections
src/run_event_triggered.py - Event-triggered runner → Inventory event detector: constructs events
src/run_event_triggered.py - Event-triggered runner → CSV generator: generates CSV
src/run_event_triggered.py