Cannot load SVM .xml file in OpenCV 3.2.0 Android

asked 2017-02-15 15:13:50 -0500

Infinito gravatar image

I have problem with loading saved .xml file for my SVM predictor after upgrading OpenCV version to 3.2.0. The error I get is following:

java.lang.UnsatisfiedLinkError: No implementation found for long org.opencv.ml.SVM.load_0(java.lang.String) (tried Java_org_opencv_ml_SVM_load_10 and Java_org_opencv_ml_SVM_load_10__Ljava_lang_String_2)

And the code which do this:

String dataPath = Environment.getExternalStorageDirectory().toString() + "/svmdata.xml";
SVM predictor = SVM.load(dataPath);

It fails in the second line while loading. Am I missing something in this new version? Could not find any solution for that.

edit retag flag offensive close merge delete