Ask Your Question

Cascade Training Error

asked 2014-04-07 10:05:04 -0500

Fr3@k gravatar image


I've got a problem with Cascade Training. At Stage 8 I get this Error:

OpenCV Error: One of arguments' values is out of range (No components/input_variables is selected!) in cvPreprocessIndexArray, file /build/buildd/opencv-2.3.1/modules/ml/src/inner_functions.cpp, line 432 terminate called after throwing an instance of 'cv::Exception' what(): /build/buildd/opencv-2.3.1/modules/ml/src/inner_functions.cpp:432: error: (-211) No components/input_variables is selected! in function cvPreprocessIndexArray

Any idea what the problem is?

This was the start of the classification:

./opencv_traincascade -data results -vec samples/yuki.vec -bg negatives/negatives.txt -numPos 1000 -numNeg 2000 -w 50 -h 50 -featureType LBP -precalcValBufSize 2048 -precalcIdxBufSize 2048

edit retag flag offensive close merge delete



Make sure you put the numPos less than the number of samples you have created in the vec file

Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-04-08 04:21:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-07 14:25:20 -0500

ejehardenberg gravatar image

updated 2014-10-07 14:27:11 -0500

also make sure numNeg is less than the number of negatives as well! I got this error and then got it working again by checking wc -l pos|neg file and making sure the settings were below for each one.

edit flag offensive delete link more

Question Tools


Asked: 2014-04-07 10:05:04 -0500

Seen: 551 times

Last updated: Apr 07 '14