1 | initial version |
the way like you create the SVM is wrong. since opencv 3.0 changed.
You can see this: http://docs.opencv.org/3.1.0/d1/d73/tutorial_introduction_to_svm.html for see one example.
Ptr<SVM> svm = SVM::create();
also i find this explanation, the best that i found. https://www.simplicity.be/article/recognizing-handwritten-digits/
good luck!