Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Detecting Traffic Light green signal

I'm new to OpenCV Object detection using Cascade Classifier and trying to perform an application that detect green signal of a traffic light.

Downloaded a Dataset containing positive pictures about STOP,GO and WARNING pictures of traffic light (arround 4000 samples for each).

Using pictures where there's green traffic light as positive samples and both red and orange traffic light as negative samples.

My configurations for training: - 20 Stages - numPos 2000 - numNeg 2000 - w 24 - h 24

Got nice result of some pictures and wrong ones from some others (i took in both cases, test picture from the positive examples that i used to train with)

Here's a preview:

Right image Wrong Image

How come such result even thought the second picture belong to used positive examples of training ?

Something else,i have followed as well opencv's tutorial about Cascade Classifier training and programmation, but it doesn't really explain questions like how things work, or how many stages to use, or how many numPos to use etc... so if you have anything that could answer such questions just feed me please...

Thanks in advance.