Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the python fix also applies to java.

(maybe you need to update your opencv libs)

the python fix also applies to java.

(maybe you need to update your opencv libs)

if you compile the latest master branch, you should have:

//
// C++: static Ptr_SVM load(String filepath)
//

//javadoc: SVM::load(filepath)
public static SVM load(String filepath)
{

    SVM retVal = new SVM(load_0(filepath));

    return retVal;
}

in build/modules/java/ml+SVM.java, and you would use it like:

SVM svm = SVM.load("my.yml");