-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Incorrect Value for "Core.NATIVE_LIBRARY_NAME" #24
Comments
Hi @aji4032, Did you call loadShared() first? Typically you should load this library like this:
Try that and let me know if you are still having problems. In addition, unless you actually need features from 3.x, I recommend using 2.4.13 instead. The Java bindings for 3.x are pretty buggy. |
Hi @vonnieda , public class TemplateMatching { |
Hi @aji4032, A few things: This works for me:
using this Maven dependency:
I'm not sure why you are getting an error that opencv_java248 is not available when you are calling for opencv_java2413. It makes me think you either have a broken Maven dependency or are using non-Maven version of the library. If you are using Maven, can you please just zip up your entire test project and send it over to me? I can test it locally and see if I get the same error. I don't believe this is an error with the library, it looks environmental to me. |
Closing as this doesn't seem like a library issue. Feel free to reopen if you still are having trouble. |
Hi,
I was facing the below error while trying to use Highgui.imread(String) function:
"java.lang.UnsatisfiedLinkError: org.opencv.highgui.Highgui.imread_1".
On searching, I found out that I might have to use "System.loadLibrary(Core.NATIVE_LIBRARY_NAME);" to load the library. But now, it gives the below error:
"java.lang.UnsatisfiedLinkError: no opencv_java248 in java.library.path"
The jar file contains opencv_java320.dll for 64bit windows machine but the value for Core.NATIVE_LIBRARY_NAME is "opencv_java320". Is this the reason why I am getting this error? Also, can you help me on how to resolve this above error also I'm receiving?
Issue Found in below Maven Dependency:
org.openpnp
opencv
3.2.0-1
The text was updated successfully, but these errors were encountered: