anmspro/Traffic-Signal-Violation-Detection-System ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python app that detects traffic signal violations from a video file and shows it in a simple desktop window.
I want to be able to open a road video, preview a frame, then click two points to draw a traffic line on the road. After that, the app should scan the video frame by frame, detect vehicles, and flag any vehicle that crosses the line while the signal is treated as red. Normal detections can be shown with green boxes, and violation cases should turn red so they are easy to spot.
Please make the interface easy to use, with basic file open, analysis, and exit options, and save an output video when processing is done. If needed, look up current docs online for anything that helps with setup or compatibility. Use the existing project assets and make it run cleanly from the GUI entry point.
Are you gonna build this?
make sure you review the code using coderabbit