How aaradhya1998/anrp--vehicle-trajactory works
ANPR Trajectory Tracker processes video for plate text, exposes detection and alert data through an API, and presents it in either a browser dashboard or a Streamlit dashboard. The README describes cross-camera trajectories and blacklist, cloned-plate, and loop alerts. Sampled detector.py currently performs video reading and OCR/format validation but does not call logger.py or alerts.py; those runtime links are therefore not inferred. Alert detection helpers and camera-registry use are not fully evidenced in the sampled source.
Main entry points: api.py FastAPI service · detector.py Video detector · app.js Web dashboard · dashboard.py Streamlit dashboard
Components 13
Plate capture
- Video detector
detector.py
Records and alerts
- Detection logger
logger.py - Detection CSV
- Alert rules
alerts.py - Plate blacklist
data/blacklist.txt - Alert CSV
- Camera registry
cameras.json
API backend
- FastAPI service
api.py
Dashboards
- Web dashboard
dashboard/app.js - Streamlit dashboard
dashboard.py
Other components
- Operator
- Video feed
- EasyOCR
Connections 11
- Operator → Video detector: starts processing
- Video feed → Video detector: video input
- Video detector → EasyOCR: reads text
- Operator → Web dashboard: views dashboard
- Operator → Streamlit dashboard: views dashboard
- Web dashboard → FastAPI service: requests data
- Streamlit dashboard → FastAPI service: requests data
- FastAPI service → Detection CSV: reads records
- FastAPI service → Alert CSV: reads and updates
- Alert rules → Plate blacklist: loads entries
- Detection logger → Detection CSV: reads and appends