Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 983 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 983 Bytes

TrafficLight-Detector

Simple traffic light detector by opencv python


TrafficLight-Detector(TLD) is a script to detect traffic lights, red? green? or yellow ones.
TLD performs well in the daylight with only about 100 lines code. See results here.
Ideas from two opencv demos: hough circle transform and object tracking.
If the detection results is not satisfied, you can adjust some params to get a better result.

How to use

  1. Make sure the resolution of your sample images being not too high (1024*768 is prefered).
  2. Pull them into /light folder.
  3. Run the script main.py
  4. You will get the results in /result folder.

If you have any problem, please contact hevlhayt@foxmail.com (ノ゚▽゚)ノ