SVM in openCV throws “cv::Exception at memory location”
问题 I'm trying to create a simple OCR application with SVM, openCV, C++ and Visual Studio 2008 (mfc app). My training samples are binary images of machine-printed digits (0-9). I want to use DAGSVM for this multi-class problem. So I need to create 45 SVMs, each of which is the SVM of 2 class (SVM(0,1), SVM(0,2)... SVM(8,9)). Here's how things are going: SVM's parameters: CvSVMParams params; params.svm_type = CvSVM::C_SVC; params.kernel_type = CvSVM::LINEAR; params.term_crit = cvTermCriteria(CV