Ask Your Question

Infinito's profile - activity

2017-02-27 08:05:45 -0600 commented answer cannot save SVM in OpenCV4Android 3.2 after upgrade: Fatal signal 11

Have you found solution to this save problem?

2017-02-27 07:44:53 -0600 commented answer svm load (still?) missing in java

Have you solved your error with svm.save method? Because I am currently getting also this "unknown exception" and don't know what to do with that.

2017-02-27 05:56:27 -0600 asked a question Error while saving trained SVM in OpenCV 3.2.0 Java

when I try to save my trained SVM into file, I get the following error:

Caused by: java.lang.Exception: unknown exception
at org.opencv.core.Algorithm.save_0(Native Method)
at org.opencv.core.Algorithm.save(Algorithm.java:53)
at signdetectiontool.training.Trainer.createTrainingFile(Trainer.java:275)
at signdetectiontool.controller.MainController.trainNetworkAction(MainController.java:372)
... 58 more

I am using OpenCV 3.2.0 Java version. Has anyone encountered such problem? I am pretty sure that my SVM is well trained, because train method returned "true" and also predicting with it seems to work well. Are there any known solutions/workarounds for this problem?

Saving looks like any other examples:

svmClassifier.save("svmdata.xml");
2017-02-20 09:31:17 -0600 received badge  Enthusiast
2017-02-15 15:21:18 -0600 asked a question 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 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.

2017-02-15 15:13:50 -0600 received badge  Organizer (source)