Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant load a picture with java open cv

Tags:

java

opencv

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)
like image 303
Jo_bast Avatar asked Nov 13 '13 16:11

Jo_bast


1 Answers

I got the same error and the below line worked for me.

System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

like image 117
Satyam Avatar answered Oct 14 '22 00:10

Satyam