java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(III)J?

后端 未结 3 668
清酒与你
清酒与你 2021-01-14 12:31

I\'ve been trying to get opencv working inside of our raspberry pi, but I have not been able to get it working at all. I made a new eclipse project, added in the OpenCV libr

3条回答
  •  遥遥无期
    2021-01-14 12:53

    The error you are getting means that the native OpenCV file has not been linked/loaded.

      System.loadLibrary( Core.NATIVE_LIBRARY_NAME );
    

    The line of code above that you are using, will work only if the specified OpenCV native file resides inside the Java library path.

    Are you sure OpenCV files are there? I would suggest trying to load the OpenCV native by giving the full path, just to see where the problem lies.

    System.load("fullPathTo/opencv.dll");
    

    I would also recommend taking a look at this post which explains all these in detail. https://stackoverflow.com/a/47718273/5165833

提交回复
热议问题