Skip to content

Real-time Traffic Light Detection using OpenCV and Python. The program detects red, yellow, and green lights in videos, images, and webcam feeds, highlights them with bounding boxes, and displays the current traffic signal. Includes sample videos, screenshots, and output annotations for demonstration.

Notifications You must be signed in to change notification settings

CodeByHarshitha/traffic-light-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Traffic Light Detection 🚦

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).


Features

  • 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

Project Files

  • 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)


About

Real-time Traffic Light Detection using OpenCV and Python. The program detects red, yellow, and green lights in videos, images, and webcam feeds, highlights them with bounding boxes, and displays the current traffic signal. Includes sample videos, screenshots, and output annotations for demonstration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages