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.
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,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
I think you'll have to play with npos/nneg only. You can try increasing number of negatives too.