Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

please have a look at the python tutorials, and use it like this:

svm = cv2.ml.SVM_create()
svm.train(....)
svm.save(....)

svm = cv2.ml.SVM_load(....)
svm.predict(....)

please have a look at the python tutorials, and use it like this:

svm = cv2.ml.SVM_create()
svm.train(....)
svm.save(....)

svm = cv2.ml.SVM_load(....)
cv2.ml.SVM_load(....) # returns a new instance !
svm.predict(....)