How anmspro/traffic-signal-violation-detection-system works
Main Components
• Object Detection Module: Centered around object_detection.py and the associated YOLOv3 weights file (yolov3.weights). This component loads the YOLO model to detect and classify vehicles in video frames.
• Video Processing & File Management: The Resources directory (with subfolders “input” and “output”) holds the video footage to be processed and the generated violation detection output files. This module covers the data ingestion and file output pipeline.
Relationships and Interactions
• Data Flow: Start with video input (from user selection via the GUI). The GUI component passes video frames to the Object Detection Module.
Architectural Patterns & Design Principles
• Modular Design: Make sure you show the clear separation between the GUI (presentation layer), the computer vision/detection logic (processing layer), and the file management (data layer).
• Extensibility: Note that the system is designed with separate functional blocks to allow future enhancements (e.g., additional violation types, improved vehicle classification).
Putting It All Together
• Interaction points (user initiating video selection, drawing ROI)
• Processing stages (image feed flowing through detection algorithms)
• Output generation (visualized on the GUI and saved to disk)
Happy diagramming!