Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv Haar trainig Error

Hi, I'm new of Opencv and i make a road signal detection and i wanna trainig the algorithm for detect this. I have follow this guide on youtube https://www.youtube.com/watch?v=KFC6jxBKtBQ but in the end they give me an error. this is the file traning.bat

opencv_traincascade.exe -data classifier -vec samples.vec -bg negativeNew.txt -numStages 10 -minHitRate 0.999 -maxFalseAllarmRate 0.5 -numPos 12 -numNeg 1 -w 20 -h 20 -mode ALL -precalcvalBuffSize 256 -precalcdxBufSize 256

And this is the error:

Image reader can not be created from -vec samples.vec and -bg negativeNew.txt.

What I know it would take many more pictures but this is a begin, just for try. Can someone help me with this error? Thanks.