Search code examples
opencvtraining-datahaar-classifier

opencv haartraining didnt finish


i use 1292 positive image its for face and 5712 negative image

and this my code for harrtraining

C:\opencv\build\x64\vc11\bin\opencv_haartraining.exe -data cascades -vec vector/facevector.vec -bg negative/bg.txt -npos 1033 -nneg 5712 -nstages 20 -nsplits 2 -nonsym -minhitrate 0.999 -maxfalsealarm 0.5 -mem 1024 -mode ALL -w 24 -h 24 PAUSE

its 20 stage and its finish stage 6 on stage 7 it still like this in image for 1 day i think its will still like this for ever what the problem the face on positive image its Clear

and this is a snip of positive image i used it

problem haartraining
(source: imagetitan.com)

![haartraining still like this ][1]

positive image
(source: imagetitan.com)

![snip of positivae image i used it][1]


Solution

  • Change your min hit rate and maxFalseAlarm rate.

    I would suggest using something like 0.4 & 0.95 to get going.

    reason for this is that it will take forever for it to hit 0.999 & 0.5 if ever (if finish at all)