How thanushamh/leanonus works
Worker Re-ID processes surveillance video through person detection, short-term tracking, quality filtering, appearance embedding, and persistent identity matching, then produces annotated video, event logs, and snapshots. The web dashboard is a documented alternate interface for demo and custom-video runs. Some runtime files, including the web server and OSNet extractor, were not excerpted, so their internal connections are limited to documented relationships.
Main entry points: pipeline.py Video Pipeline · web_server.py Dashboard Server · identity_manager.py Identity Manager · cli.py Command Line
Components 18
Run Interfaces
- Command Line
src/worker_reid/cli.py - Web Dashboard
web/app.js - Dashboard Server
web_server.py
Frame Analysis
- Video Pipeline
src/worker_reid/pipeline.py - Config Loader
src/worker_reid/config.py - Person Detector
src/worker_reid/detector_cloud.py - ByteTrack Wrapper
src/worker_reid/tracker.py - Detection Filter
src/worker_reid/quality.py
Identity Resolution
- OSNet Extractor
src/worker_reid/reid_extractor.py - Identity Manager
src/worker_reid/identity_manager.py - Exemplar Gallery
src/worker_reid/gallery.py
Results and Dashboard
- Video Overlay
src/worker_reid/visualizer.py - Annotated Video
- Event Audit Log
- Event Snapshots
Other components
- Operator
- Input Video
- YOLO Cloud API
Connections 22
- Operator → Command Line: runs
README.md - Operator → Web Dashboard: uses
README.md - Input Video → Video Pipeline: frames
src/worker_reid/pipeline.py - Command Line → Video Pipeline: invokes
src/worker_reid/cli.py - Web Dashboard → Dashboard Server: requests runs
README.md - Dashboard Server → Video Pipeline: starts processing
README.md - Video Pipeline → Config Loader: loads settings
src/worker_reid/pipeline.py - Video Pipeline → Person Detector: detects people
src/worker_reid/pipeline.py - Person Detector → YOLO Cloud API: requests detections
src/worker_reid/detector_cloud.py - Video Pipeline → ByteTrack Wrapper: tracks detections
src/worker_reid/pipeline.py - Video Pipeline → Detection Filter: filters tracks
src/worker_reid/pipeline.py - Video Pipeline → Identity Manager: updates identities
src/worker_reid/pipeline.py - Identity Manager → OSNet Extractor: extracts embeddings
src/worker_reid/identity_manager.py - Identity Manager → Exemplar Gallery: matches profiles
src/worker_reid/identity_manager.py - Video Pipeline → Exemplar Gallery: reads profiles
src/worker_reid/pipeline.py - Video Pipeline → Video Overlay: draws overlay
src/worker_reid/pipeline.py - Video Pipeline → Annotated Video: writes video
README.md - Video Pipeline → Event Audit Log: writes events
src/worker_reid/pipeline.py - Video Pipeline → Event Snapshots: saves snapshots
src/worker_reid/pipeline.py - Dashboard Server → Annotated Video: serves results
- Dashboard Server → Event Audit Log: serves results
- Dashboard Server → Event Snapshots: serves results