How vaishnavigiri1210/automated-pmpml-brt-lane-intrusion-detection-vehicle-tracking-and-dynamic-fine-management-system works
The product is a FastAPI-based BRT corridor monitoring and automated e-challan system. Video sources feed live detection and tracking; the application checks lane intrusion and vehicle authorization, reads plates, tracks distance-based enforcement stages, and dispatches alerts and evidence-backed challans. The dashboard exposes live monitoring and enforcement results. The README documents several capabilities not fully visible in the excerpts; those links are cited to it rather than presented as inspected implementation details.
Main entry points: main.py FastAPI Application · intrusion.py Intrusion & Fine Stages · sms.py SMS Notifications · db.py PostgreSQL Records
Components 17
Live Monitoring
- FastAPI Application
backend/app/main.py - Operations Dashboard
backend/app/templates/index.html - Live MJPEG Feed
backend/app/main.py
Detection & Enforcement
- Vehicle Detection & Tracking
backend/app/main.py - Lane Geometry & Distance
backend/app/services/lane.py - Vehicle Authorization
backend/app/services/authorization.py - Plate Recognition
backend/app/services/anpr.py - Intrusion & Fine Stages
backend/app/services/intrusion.py - Penalty Policy
backend/app/services/config.py
Alerts & Evidence
- SMS Notifications
backend/app/services/sms.py - Evidence Snapshots
backend/app/main.py - PDF E-Challan & Digest
backend/app/services/challan.py
Persistence
- PostgreSQL Records
backend/app/services/db.py
Other components
- Operator
- CCTV / Video
- Twilio Gateway
- PostgreSQL
Connections 15
- Operator → Operations Dashboard: opens dashboard
README.md - CCTV / Video → Vehicle Detection & Tracking: provide frames
README.md - FastAPI Application → Operations Dashboard: renders
backend/app/main.py - FastAPI Application → Live MJPEG Feed: streams
backend/app/main.py - Vehicle Detection & Tracking → Lane Geometry & Distance: checks lane and distance
backend/app/main.py - Vehicle Detection & Tracking → Vehicle Authorization: classifies vehicles
backend/app/main.py - Vehicle Detection & Tracking → Plate Recognition: reads plates
backend/app/main.py - Vehicle Detection & Tracking → Intrusion & Fine Stages: updates intrusion state
README.md - Intrusion & Fine Stages → Penalty Policy: uses thresholds
backend/app/services/intrusion.py - FastAPI Application → SMS Notifications: dispatches stage alerts
backend/app/main.py - SMS Notifications → Twilio Gateway: sends via Twilio
backend/app/services/sms.py - FastAPI Application → Evidence Snapshots: captures snapshots
backend/app/main.py - FastAPI Application → PDF E-Challan & Digest: generates PDF
backend/app/main.py - FastAPI Application → PostgreSQL Records: persists and reads records
backend/app/main.py - PostgreSQL Records → PostgreSQL: stores records
README.md