Ask Your Question

Fr3@k's profile - activity

2016-10-12 10:14:44 -0600 received badge  Notable Question (source)
2016-04-19 05:59:21 -0600 received badge  Popular Question (source)
2014-10-07 13:26:30 -0600 received badge  Student (source)
2014-04-07 10:05:04 -0600 asked a question Cascade Training Error

Hi,

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

2014-04-05 17:03:12 -0600 commented answer cat detection

I've got a problem with the new 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

2014-03-25 09:00:47 -0600 received badge  Self-Learner (source)
2014-03-25 05:16:08 -0600 answered a question cat detection

It is working now. I found a mistake in my program-settings. The size of the Webcam-video was too small to detect the Object i trained the Classifier for. I resized the Window to the webcam-resolution. Now the cat-detection works fine. Even with the Haar-Classifier the results are acceptable but the LBP is much better ;)

Now I will implement your advice and make a new/better Classifier with positive Images taken from a Video.

Thanks for your help!

2014-03-23 14:08:55 -0600 asked a question positive image builder?

Hi there,

I am searching for a Linux-tool to generate the information (e.g.: positves.dat) file that is used for the createsamples program.

I have made a Video of the Object that has to be detected and saved each frame as image. Now i need to define the rectangles for the exact Object region.

Is there any Linux-tool for this because by hand its very elaborate.

Thanks :)

2014-03-10 14:47:47 -0600 commented answer cat detection

So you mean that it is necessary to use about 1800 different positive images?

I want to single out my cat from others, thats right. Though others means about three or four cats. Is there a greater chance to succeed with LBP instead of Haar-Features? I only tried LBP with the positive images described above. Thanks for your help!

2014-03-05 11:51:43 -0600 asked a question cat detection

Hi there,

i am trying to build a cascade classifier to identify my cat (used with a cat flap). So the goal is just to identify ONE cat.

I have made 10 images of my cat and builded altogether 200 positives with

./opencv_createsamples -img positives/yuki01.jpg -vec samples/yuki01.vec -w 50 -h 50 -num 20

and

./mergevec samples/info.dat samples/yuki.vec

The vec-File is fine, it contains 200 images. Furthermore I have got 1000 negative images (size 640x480) for the training. I started the classification like this:

./opencv_traincascade -data results -vec samples/yuki.vec -bg negatives/info.dat -w 50 -h 50 -numPos 200 -numNeg 1000

After 16 Stages and a long Time I finally got the cascade.xml file. I used the source code from an OpenCV Tutorial I found here: CascadeClassifier

Of course I changed the cascade name into "cascade.xml". When I start the detection it finds nothing, even if I point the camera directly to the positive images. Feature Type was HAAR but I also tried LBP and its the same result.

Any idea what went wrong? Thanks!