How telu-transtrack-fatigue-detection/transtrack-cloud-review works
TransTrack Cloud Review Engine accepts fatigue alarms, queues asynchronous video review, extracts facial features, classifies driver state, applies documented escalation rules, stores results, and posts callbacks. The graph also includes the documented offline batch-inference and dataset-evaluation capabilities. The sampled worker implementation shows download, inference, record writing, and callback delivery, but not the README’s night/history rules; those links are therefore marked as documented rather than verified in source.
Main entry points: worker.py Alarm Worker · main.py Review API · pipeline.py Landmark Features · batch_video_infer.py Batch Inference
Components 18
API and Intake
- Review API
app/main.py - Alarm Schema
app/schemas.py - Redis Queue
- Alarm Worker
app/worker.py - Service Settings
app/config.py
Video and Inference
- Video Download
app/worker.py - Landmark Features
app/pipeline.py - MultiScaleTCN
app/pipeline.py - Model Files
models - Model Setup
app/model_manager.py
Review and Records
- Escalation Rules
app - Review Result
app/schemas.py - Review Records
app/worker.py - Callback Service
Offline Analysis
- Batch Inference
scripts/batch_video_infer.py - Batch Reports
scripts/batch_video_infer.py - Dataset Evaluation
scripts/eval_npz.py
Other components
- TransTrack Platform
Connections 19
- TransTrack Platform → Review API: submits alarm
README.md - Review API → Alarm Schema: validates payload
app/main.py - Review API → Redis Queue: queues task
app/main.py - Review API → Alarm Worker: dispatches task
app/main.py - Review API → Service Settings: reads settings
app/main.py - Alarm Worker → Service Settings: reads settings
app/worker.py - Alarm Worker → Video Download: downloads video
app/worker.py - Alarm Worker → Model Setup: initializes models
app/worker.py - Model Setup → Model Files: downloads weights
app/model_manager.py - Alarm Worker → Landmark Features: extracts features
app/worker.py - Alarm Worker → MultiScaleTCN: runs inference
app/worker.py - Alarm Worker → Escalation Rules: applies rules
README.md - Alarm Worker → Review Result: builds result
app/worker.py - Alarm Worker → Review Records: writes records
app/worker.py - Alarm Worker → Callback Service: posts verdict
app/worker.py - TransTrack Platform → Callback Service: receives verdict
README.md - Batch Inference → Landmark Features: uses pipeline
scripts/batch_video_infer.py - Batch Inference → Batch Reports: writes reports
README.md - Dataset Evaluation → Landmark Features: uses pipeline
scripts/eval_npz.py