How brightsign/argus-audience-measurement-extension works
Argus is an on-device audience-measurement application: it captures USB, RTSP, or file video, runs face and person detection on the NPU, tracks people and engagement, then publishes analytics. The README also documents MQTT, Prometheus, an image streamer, and a live dashboard. The graph combines those documented capabilities with relationships visible in the sampled orchestrator and worker declarations; several implementation details, including metrics export and dashboard fallback behavior, were not sampled.
Main entry points: orchestrator.cpp Orchestrator · inference_worker.cpp Inference workers · main.cpp Application entry · app.js Dashboard UI
Components 21
Runtime and capture
- Application entry
src/main.cpp - Orchestrator
src/orchestration/orchestrator.cpp - Camera input
src/input/input_factory.cpp - Frame capture
src/pipeline/capture_worker.cpp - Frame mailbox
include/pipeline/frame_mailbox.h
Detection and analytics
- Face / gaze inference
src/models/model_runner_retinaface.cpp - Person inference
src/models/model_runner_yolox.cpp - Inference workers
src/orchestration/inference_worker.cpp - Detection fusion
src/orchestration/orchestrator.cpp - People tracking
src/tracking/tracker.cpp
Publishing and visualization
- MQTT analytics
src/output/mqtt_publisher.cpp - Prometheus metrics
include/metrics/metrics_aggregator.h - Annotated frames
src/output/frame_writer.cpp - Image streamer
src/main.cpp - Dashboard server
dashboard-server/main.go - Dashboard UI
dashboard/app.js
Configuration and resources
- Runtime configuration
src/config/configuration.cpp - NPU resources
src/resources/resource_manager.cpp
Other components
- Operator / camera
- Mosquitto broker
- Dashboard user
Connections 24
- Operator / camera → Application entry: starts
README.md - Application entry → Runtime configuration: loads
src/main.cpp - Application entry → Orchestrator: starts
src/main.cpp - Orchestrator → Camera input: builds
src/orchestration/orchestrator.cpp - Camera input → Frame capture: provides frames
- Frame capture → Frame mailbox: queues frames
src/pipeline/capture_worker.cpp - Orchestrator → NPU resources: initializes
- Orchestrator → Inference workers: starts workers
src/orchestration/orchestrator.cpp - Inference workers → Frame mailbox: takes frames
src/orchestration/inference_worker.cpp - Inference workers → Face / gaze inference: runs model
src/orchestration/inference_worker.cpp - Inference workers → Person inference: runs model
src/orchestration/inference_worker.cpp - Inference workers → Detection fusion: stores results
src/orchestration/inference_worker.cpp - Orchestrator → Detection fusion: maintains results
src/orchestration/orchestrator.cpp - Orchestrator → People tracking: updates tracks
- Detection fusion → People tracking: supplies detections
- Orchestrator → MQTT analytics: publishes analytics
- MQTT analytics → Mosquitto broker: sends messages
README.md - Orchestrator → Prometheus metrics: exports metrics
- Inference workers → Annotated frames: writes overlays
- Annotated frames → Image streamer: serves images
- Dashboard server → Image streamer: proxies video
README.md - Dashboard UI → Mosquitto broker: subscribes via MQTT-WebSockets
README.md - Dashboard server → Dashboard UI: serves UI
README.md - Dashboard user → Dashboard UI: views analytics
README.md