OpenCV Error : Assertion failed during haartraining

asked 2013-08-06 14:09:32 -0500

Srednuht gravatar image

updated 2013-08-06 14:11:01 -0500

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,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

edit retag flag offensive close merge delete

Comments

I think you'll have to play with npos/nneg only. You can try increasing number of negatives too.

vinayverma gravatar imagevinayverma ( 2013-08-06 23:26:07 -0500 )edit