Traffic light detection: Datasets & Models
Automatically detect and locate traffic lights in images and video streams, identifying signal position and state to support driving and traffic systems.
Traffic light detection
This detection workflow processes images and video streams from vehicle-mounted cameras, dashcams, and intersection feeds to locate traffic lights and read their state. Trained on a traffic light dataset, it identifies each signal head along with its color state such as red, yellow, and green, plus directional arrows and pedestrian indicators.
Try it out
Powered by general detection model
Run on custom image
Drop an image here or click to upload
Why automate traffic light detection
For teams building autonomous driving stacks, ADAS features, or smart city traffic management, manually reviewing footage to catalog signal states is slow, inconsistent, and impossible to scale to live operation. Automating traffic light detection with computer vision gives you reliable, frame-by-frame recognition that feeds directly into navigation logic, violation monitoring, or signal timing analytics. It removes the human bottleneck and delivers repeatable results across thousands of intersections and hours of video.
Key benefits
You get consistent detection accuracy across day, night, and adverse weather, and the models integrate with existing traffic cameras, dashcams, and edge devices without new hardware. Because the workflow is built on a standard detection pipeline, it scales from a single test vehicle to a citywide deployment, and RF-DETR provides strong accuracy on small and distant signal heads common in real road scenes.
How to use it
- Upload an image: Drop any photo into the widget above to try traffic light detection for free, right on this page.
- Preview instant results: The model detects red light, green light, yellow light, traffic light, pedestrian signal within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
- Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train RF-DETR on your own images for production accuracy.
- Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model for traffic light detection
RF-DETR is state of the art for real-time object detection, instance segmentation, and keypoint detection, with higher accuracy and lower latency than comparable models, and it's Apache 2.0 licensed. When you're ready to build a production model for traffic light detection, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.
Not sure where to start?
Describe your Traffic Light Detection project to Roboflow Agent.