I have 10 positive and 10 negative images.
d:\opencv\build\x86\vc10\bin\opencv_traincascade.exe -data dir -vec pos.vec -bg negative\neg.txt -numPos 10 -numNeg 10 -w 40 -h 40
Stages 0-7 are fast but stop at 8-th state; if I add "-numStages 8" is OK - create cascade.xml, but if should be only 8 stages?