Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Infinite loop in Haar, LBP, HOG in opencv traincascades

I have asked the same question on stackoverflow. I am trying to build a classifier to detect faces in Thermal images. So I tried training using Haar, LBP and HOG classifiers. I am working with OpenCV 2.4.8 on windows.

opencv_traincascade.exe -data haarcascades -vec pos.vec -bg neg.txt -numPos 250 -numStages 24 -numNeg 900 -w 24 -h 24

I have 307 positive samples in total. The negative samples are of size 75x75. For each of the three cases the training gets stuck at a particular stage-earlier for Haar (stage-12) and later for LBP (stage-14/15). I reduced the number of negatives (upto 200) but that means the training gets stuck at a later stage. The training hasn't progressed since 2 days. No negatives are being consumed and the command window looks like this-

===== TRAINING 14-stage =====
<BEGIN
POS count : consumed   255 : 262

Also-What do POS count consumed and NEG count consumed signify? When I reduce the minHitRate to say 0.7 why do the number of POS consumed increase?

Please let me know what I am doing wrong. Thanks.