本文介绍了无法使用java open cv加载图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试将所有库放入我的项目中(这被描述为该问题的解决方案),但是仍然存在相同的问题.
I tried putting all libraries in my project (it was describet like solution of this problem ) but there is still same problem.
Mat m = Highgui.imread("Koala.jpg");
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.highgui.Highgui.imread_1(Ljava/lang/String;)J
at org.opencv.highgui.Highgui.imread_1(Native Method)
at org.opencv.highgui.Highgui.imread(Highgui.java:352)
at Open.main(Open.java:26)
推荐答案
我遇到了相同的错误,下面的代码对我有用.
I got the same error and the below line worked for me.
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
这篇关于无法使用java open cv加载图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!