Ask Your Question

Revision history [back]

cascade training... help!

Hello, I am trying to train a cascade to recognize a traffic cone.

I am trying to use these parameters:

perl bin/createsamples.pl positives.txt negatives.txt samples 500 \
    "opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 \
    -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 30 -h 45 "

 

opencv_traincascade -data classifier -vec samples.vec -bg negatives.txt \
    -numStages 16 -minHitRate 0.990 -maxFalseAlarmRate 0.2 -numPos 18 \
    -numNeg 4640 -w 30 -h 45 -mode ALL -precalcValBufSize 2048 \
    -precalcIdxBufSize 2048

    I used bgcolor 0 and the positive images backgroud is black.

The negative images are where I need to identify the cones.

I have many false positives. Can you help me adjust the parameters I need to use?

All positive images have been converted to grayscale and are the same size and black background.

image description image description image description