我正在为OpenCV运行以下代码段:
public static void main(String[] args){
System.out.println("Welcome to OpenCV " + Core.VERSION);
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
System.out.println("m = " + m.dump());
}
我收到此错误:
Welcome to OpenCV 2.4.13.4
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_eye(III)J
at org.opencv.core.Mat.n_eye(Native Method)
at org.opencv.core.Mat.eye(Mat.java:1468)
at HelloCV.main(HelloCV.java:29)
我尝试了以下内容:
答案 0 :(得分:0)
以下eclipse版本似乎存在问题:
Eclipse IDE for Java Developers
Version: Oxygen.1a Release (4.7.1a)
Build id: 20171005-1200
OS: Windows 10, v.10.0, x86_64 / win32
以下日食版本有效:
Eclipse SDK
Version: Neon (4.6)
Build id: I20160606-1100