-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.UnsatisfiedLinkError when calling SVM.loadSVM() #638
Comments
OK, it seems the problem is solved. You have to to call FileStorage.open() before SVM.loadSVM(). Is it true? final String path = "/path/to/trained/svm.xml";
FileStorage fs = new FileStorage();
fs.open(path, CV_STORAGE_READ);
SVM.loadSVM(path, "svm"); |
There are a few Loader.load(org.bytedeco.javacpp.opencv_ml.class); |
Wow~ Thanks for your precise reply, @saudet ! It works. |
The fix is part of these binaries available on Maven: |
java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.helper.opencv_ml$AbstractStatModel.loadSVM(Ljava/lang/String;Ljava/lang/String;)Lorg/bytedeco/javacpp/opencv_ml$SVM;
at org.bytedeco.javacpp.helper.opencv_ml$AbstractStatModel.loadSVM(Native Method)
Just simply calling SVM.loadSVM("/path/to/trained/svm.xml", "svm");
Everything (SVM train etc.) works normally but SVM.loadSVM().
Any suggestion is appreciated, thanks!
The text was updated successfully, but these errors were encountered: