I'm running OpenCV2.4.7 on Windows8.
I'm using opencv_traincascade to train a new cascade for faces. I ran the following command:
opencv_haartraining.exe -data -haarcascadeold -vec vector20.vec -bg infofile2.txt -nstages 40 -minhitrate 0.9999999 -maxfalsealarm 0.5 -npos 9000 -nneg 26946 -w 20 -h 20 -mem 1024
However, it seems to get stuck:
This happens every time I run it, I even tried to change the values to -minhitrate 0.8 -maxfalsealarm 0.7. The first time, it ran for 180 iterations producing the exact same values.
have about 13,000 positives, but I set the npos to be 9000 so I won't run out of positive examples.
I have to use the old function instead of traincascade as my colleague wrote his code using the old C interface.
Can someone please explain the cause of this problem and how to fix it?
Thanks,
Gil