I am using opencv 3.1 on Win 8.1 with Visual Studio 2015 this code Ptr<ml::svm> svm = ml::SVM::create(); svm->load<ml::svm>("svm_filename"); int varcnt=svm->getVarCount();
Value of varcnt is -842150451 But in file "svm_filename" var_count: 510 Because of this i have error opencv error: assertion failed (samples.cols==var_count