load the existing svm with python
How can I load the existing svm in opencv3 by python?
How can I load the existing svm in opencv3 by python?
if that is opencv3.1 (it won't work with 3.0), you should have a SVM_load() function, which creates a new SVM from a pretrained model like this:
svm = cv2.ml.SVM_load("mymodel.xml")
you can check in the repl:
>>> help(cv2.ml.SVM_load)
Help on built-in function SVM_load:
SVM_load(...)
SVM_load(filepath) -> retval
I just downloaded and installed the latest opencv-master repo. But I still can't find that function
Asked: 2016-08-16 22:45:16 -0600
Seen: 2,394 times
Last updated: Sep 02 '16
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Using OpenCV's stitching module, strange error when compositing images
compile error in opencv2/flann/lsh_table.h when compiling bgslibrary