Ask Your Question

Revision history [back]

Train dataset for temp stage can not be filled. Branch training terminated."

I am trying to detect logos in flat, 2 dimensional images (advertisements).


Setup- Positive Image #1 and #2

Negative Images (600 random advertisements) Sample #1 and Sample #2

With the command opencv_traincascade -data classifier -vec sample.vec -bg negatives.txt -numStages 2 -minHitRate 0.995 -maxFalseAlarmRate 0.5 -numPos 2 -numNeg 1500 -w 20 -h 20 -mode ALL -precalcValBufSize 2048 -precalcIdxBufSize 2048

Gives me the error -

"Train dataset for temp stage can not be filled. Branch training terminated."

image description

Any help would be greatly appreciated!