Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Silly question about opencv_traincascade.exe

Given:

  • 1 positive sample in out.vec file

  • 5 negative samples - 5 jpg files in 'negative' directory

I tried start opencv_traincascade.exe with parameters below:

E:\OpenCV\opencv\build\x64\vc12\bin\opencv_traincascade.exe -data "E:\Dropbox\Diplom\haartraining-result" -vec "E:\Dropbox\Diplom\out.vec" -bg "E:\Dropbox\Diplom\negative\bg.txt" -numPos 1 -numNeg 5 -numStages 1 -featureType HAAR -w 64 -h 64 -precalcValBufSize 4092 -precalcIdxBufSize 4092

and get an error 'Cascade classifier can't be trained. Check the used training parameters.'

Which parameter incorrect, what i doing wrong?

Thanks!