Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cannot load SVM .xml file in OpenCV 3.2.0 Android

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 (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.