windows, eclipse, java and openCV-245
Hi, I am following the instructions on this page for installation of openCV:
But it doesn't work. I cant execute the example code.
import org.opencv.core.CvType;
import org.opencv.core.Mat;
public class Main {
public static void main(String[] args) {
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
System.out.println("m = " + m.dump());
}
}
I need openCV to do some motion detection on image-series, but i am too stupid to import openCV-2.4.5 properly.
The console output shows this message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java244 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at camStatisticsTests.RawTests.main(RawTests.java:20)
What am i doing wrong ?
someone edited the tutorial, but it still doesn't work, same error.
Actually i found a solution myself: The Tutorial doesn't show that the dll inside the path "opencv\build\java\x86" has to be attached to the jar. The editors should update this. It leads to confusion.