Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Error : Assertion failed during haartraining

Hi, i know that there is a topic (http://answers.opencv.org/question/3085/why-always-opencv-error-assertion-failed/ ) where somebody did the same question but anything worked for me.

image description

I changed several times the amount of pos and neg images, i tried all i saw in the net and the problem still here. If anybody knows how to repair it, could be also usefull know what's the last opencv estable version without this bug.

The sentences i used in order to create the .vec file and the haartraing are :

C:\Libraries\OpenCV\opencv\build\bin\Debug\opencv_haartrainingd.exe -data haarcascade -vec samples.vec -bg infofile.txt -nstages 10 -minhitrate 0.999 -maxfalsealarm 0.5 -npos 843 -nneg 1414 -w 24 -h 24 -nonsym -mem 1000

and

C:\Libraries\OpenCV\opencv\build\bin\Debug\opencv_createsamplesd -info info.txt -vec samples.vec -w 24 -h 24

Thanks everyone for the help

OpenCV Error : Assertion failed during haartraining

Hi, i know that there is a topic (http://answers.opencv.org/question/3085/why-always-opencv-error-assertion-failed/ ) where somebody did the same question but anything worked for me.

image description

I changed several times the amount of pos and neg images, i tried all i saw in the net and the problem still here. If anybody knows how to repair it, it,just !HELP! !PLEASE!... could be also usefull know what's the last opencv estable version without this bug.

The sentences i used in order to create the .vec file and the haartraing are :

C:\Libraries\OpenCV\opencv\build\bin\Debug\opencv_haartrainingd.exe -data haarcascade -vec samples.vec -bg infofile.txt -nstages 10 -minhitrate 0.999 -maxfalsealarm 0.5 -npos 843 -nneg 1414 -w 24 -h 24 -nonsym -mem 1000

and

C:\Libraries\OpenCV\opencv\build\bin\Debug\opencv_createsamplesd -info info.txt -vec samples.vec -w 24 -h 24

Thanks everyone for the help