A real-time traffic light detection system built using Python and OpenCV.
This project detects traffic lights in videos and images, highlighting the current state (red, yellow, green).
- Real-time detection from video or webcam input
- Color-based detection using HSV color space
- Annotated output with detected traffic lights
- Captures screenshots of detected frames
traffic_light_detection.py– core script for traffic light detection
⚠️ Large data files such as videos are not included in this repository because GitHub limits uploads to 25 MB.
You can download all the project videos and data here:
Project Data & Videos (Google Drive)