How to generate xml file of svm classifier using opencv3.0-beta
In opencv3.0, we can code like following to train svm classifier.
Ptr<SVM> svm = StatModel::train<SVM>(trainingDataMat, ROW_SAMPLE, labelsMat,params);
However,there is no way to save the result as xml file. In the early version, we can use svm.save("svm.xml") to save the result. It's so convenient. So I want to know how to generate xml file of svm classifier using opencv3.0-beta. Thank you for your suggestions!
sure you can use svm->save() and svm->load() ! why do you think, it's not possible ?
Yeah. Because when I try to use svm.save(), I can't find the function. Maybe there is no this function in opencv3.0-beta. I'm also very confused.
can it be, you're just missing the pointer ? again, svm->save(), not svm.save()
http://docs.opencv.org/ref/master/db/...
Yes. You are right! Thank you for your help.