Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Does anybody else have this problem?

> "Bad argument (The SVM should be trained first) in CvSVM::predict"

Steven, I've seen your post but it doesn't seems to be a problem.

I'm trying to load saved SVM classifier:

mySVM.save("C:\classifier.xml");

mySVM.load("C:\classifier.xml");

I saved it as .xml, file seems to be correctly saved. Thanks!

click to hide/show revision 2
No.2 Revision

Does anybody else have this problem?problem? Wapir did you manage to fix it?

> 

"Bad argument (The SVM should be trained first) in CvSVM::predict"

CvSVM::predict"

Steven, I've seen your post but it doesn't seems to be a problem.

I'm trying to load saved SVM classifier:

mySVM.save("C:\classifier.xml");

mySVM.load("C:\classifier.xml");

I saved it as .xml, file seems to be correctly saved. Thanks!

click to hide/show revision 3
No.3 Revision

Does anybody else have this problem? Wapir Wampir did you manage to fix it?

"Bad argument (The SVM should be trained first) in CvSVM::predict"

Steven, I've seen your post but it doesn't seems to be a problem.

I'm trying to load saved SVM classifier:

mySVM.save("C:\classifier.xml");

mySVM.load("C:\classifier.xml");

I saved it as .xml, file seems to be correctly saved. Thanks!