Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cascade Training Error OpenCV 3.1 - Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters.

"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: image description

Any help?

click to hide/show revision 2
retagged

updated 2016-03-29 02:22:00 -0600

berak gravatar image

Cascade Training Error OpenCV 3.1 - Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters.

"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: image description

Any help?

click to hide/show revision 3
retagged

updated 2016-03-29 02:22:16 -0600

berak gravatar image

Cascade Training Error OpenCV 3.1 - Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters.

"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: image description

Any help?

Cascade Training Error OpenCV 3.1 - Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters.

"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 with 8 GB of memory (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: image description

Any help?

Cascade Training Error OpenCV 3.1 - Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters.

"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 with 8 GB of memory (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 used to create de .vec file (at the directory Positivas) was :

opencv_createsamples -vec Placas_Positivas.vec -info Training.txt -num 500 -w 200 -h 50 (just like as here)

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: image description

Any help?