Hello !
I want to install and work with the OpenCV on Mac . I did everything as described in this tutorial. Wrote the following code:
import org.opencv.core.Core; import org.opencv.core.CvType; import org.opencv.core.Mat; public class Main { static { try { System.load("/Users/nikto92/Documents/opencv-2.4.13/release/bin/opencv_java2413.jar"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load.\n" + e); System.exit(1); } } public static void main(String argv[]) { System.loadLibrary( Core.NATIVE_LIBRARY_NAME ); Mat mat = Mat.eye( 3, 3, CvType.CV_8UC1 ); System.out.println( "mat = " + mat.dump() ); } } It produces the following error:
Native code library failed to load. java.lang.UnsatisfiedLinkError: Can't load library: /Users/nikto92/Documents/opencv-2.4.13/release/bin/opencv_java2413.jar
What have I done wrong ?
For the answer I will be very grateful. Thank !