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.
- Make sure the resolution of your sample images being not too high (1024*768 is prefered).
- Pull them into /light folder.
- Run the script main.py
- You will get the results in /result folder.
If you have any problem, please contact [email protected] (ノ゚▽゚)ノ