How vaibhavbari10/vaibhavbari10-anpr-and-atcc-for-smart-traffic-management works
This repository is a smart-traffic video analysis prototype combining vehicle tracking, plate recognition, interpolation, and annotated-video generation. Its documented workflow runs detection, fills gaps in tracked bounding boxes, then renders results over the source video. The sampled entry point calls the video reader and tracker; tracker utilities support plate processing and CSV output. The README documents the broader stages, but the implementation and filenames do not consistently match it, so those links are cited as documented workflow rather than inferred from unsampled code.
Main entry points: main.py Pipeline Entry · visualize.py Video Renderer · add_missing_data.py Gap Interpolation · tracker_3.py ANPR Tracker
Components 14
Video Ingestion
- Pipeline Entry
main.py - Video Reader
utils/video_utils.py
Detection and Recognition
- ANPR Tracker
object_tracker/tracker_3.py - Vehicle Tracker
object_tracker/tracker_2.py - Basic Tracker
object_tracker/tracker.py - Plate OCR Utilities
utils/util.py - Detection Model Training
number_plate_detection_model_training
Tracking Data
- Detection CSVs
results - Gap Interpolation
add_missing_data.py - Interpolated CSV
Visualization
- Video Renderer
visualize.py - Annotated Video
Other components
- Operator
- Traffic Video
Connections 13
- Operator → Pipeline Entry: runs
README.md - Pipeline Entry → Video Reader: reads frames
main.py - Traffic Video → Video Reader: provides input
- Pipeline Entry → ANPR Tracker: processes frames
main.py - ANPR Tracker → Plate OCR Utilities: uses plate helpers
object_tracker/tracker_3.py - Pipeline Entry → Detection CSVs: generates detections
README.md - Operator → Gap Interpolation: runs
README.md - Detection CSVs → Gap Interpolation: reads detections
add_missing_data.py - Gap Interpolation → Interpolated CSV: writes interpolated data
add_missing_data.py - Operator → Video Renderer: runs
README.md - Interpolated CSV → Video Renderer: reads tracks
visualize.py - Traffic Video → Video Renderer: provides frames
visualize.py - Video Renderer → Annotated Video: writes video
visualize.py