"Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters."
I'm really struggling on this error. It's taking me forever to solve it.
I've already read
- http://answers.opencv.org/question/16868/error-in-train-casacde/
- http://answers.opencv.org/question/10872/cascade-training-error-opencv-244-train-dataset-for-temp-stage-can-not-filled-branch-training-terminated-cascade-classifier-cant-be-trained-check-the/
- http://stackoverflow.com/questions/11412655/error-train-dataset-for-temp-stage-can-not-be-filled-while-using-traincascade
- http://stackoverflow.com/questions/20153324/training-function-in-opencv-can-not-train-my-classifier
and I'm doing the same as the following tutorials:
- https://www.youtube.com/watch?v=WEzm7L5zoZE
- http://www.memememememememe.me/training-haar-cascades/
I couldn't find any real solution, hence I'm updating the question.
I'm using OpenCV 3.1.0 with Python on a Macbook (Unix).
Here you can find the folder structure and files of my project. (Negative and Positive folders, the .vec file, and a sample of both images database).
I have in total 500(640 × 240) positive images and 2988(640 × 480) negative images.
The command that I'm using (at the directory Cascade_Training) is:
opencv_traincascade -data Data -vec Positivas/Placas_Positivas.vec -bg Negativas/Training_Negatives.txt -numPos 400 -numNeg 2500 -numStages 15 -w 200 -h 50 -featureType LBP
and NO MATTER WHAT I DO, I always see the result in the following image:
Any help?