1 | initial version |
Instead of your command try this:
1)opencv_traincascade -data ./trained5/ -vec samples.vec -bg neg.txt -numStages 20 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 300 -numNeg 7 -w 50 -h 50 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024
OR
2)opencv_traincascade -data classifier -vec samples.vec -bg negatives.txt\ -numStages 20 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 1000\ -numNeg 600 -w 80 -h 40 -mode ALL -precalcValBufSize 1024\ -precalcIdxBufSize 1024 -nonsym -mem 512 -mode ALL
(NOTE :-use opencv_traincascaded if the .exe file in the bin is opencv_traincascaded)
Hope this helps you :)