I am having 25 positive images and 50 negative images,Running the traincascade.exe to generate the cascade classifier for 20 stages.But every time it is interrupting at 17th stage saying "Required leaf false alarm rate achieved. Branch training terminated."Even when I tried to run it for 10 stages it is getting interrupted at 5th step giving the same result.Why is it so???What is to be done to solve the problem???Please give solution. Although cascades.xml is generated by running the command opencv_traincascade -data cascade -vec text_classifier\positive.vec -bg negative_images\negative.dat -numPos 20 -numNeg 15 -numStag 1 -featureType HAAR -minHitRate 0.999 -maxFalseAlarmRate 0.5 -w 24 -h 30. Still many xmls are generated each for every successful stages,along with the param.xml and cascade.xml Yet I could not make which xml is to be used as an output ????