Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SVM training error

Now I train SVM with SURF feature for face recognition. During training I got an error like this:

OpenCV Error: Sizes of input arguments do not match (Response array must contain as many elements as the total number of samples) in cvPreprocessCategoricalResponses, file /home/arya/stuff/opencv/opencv-2.4.7/modules/ml/src/inner_functions.cpp, line 671 terminate called after throwing an instance of 'cv::Exception' what(): /home/arya/stuff/opencv/opencv-2.4.7/modules/ml/src/inner_functions.cpp:671: error: (-209) Response array must contain as many elements as the total number of samples in function cvPreprocessCategoricalResponses

I don't understand what this error exactly mean by.Could anyone explain me why I got error like this?