UnsatisfiedLinkError: no opencv_java249 in java.library.path

后端 未结 9 1485
旧巷少年郎
旧巷少年郎 2020-11-27 05:38

Running into some problems making a piece of code run on my mac. Had someone write me an image analysis java app but I keep getting this error when trying to run it on netbe

9条回答
  •  死守一世寂寞
    2020-11-27 06:21

    Instead of struggling with manual installation of OpenCV libraries I suggest you use OpenCV Java library packaged by OpenPnP (https://github.com/openpnp/opencv) that includes all required DLL.

    It does not require additonal steps except of adding it to your build automation tool configuration (Gradle in my case) and adding the following code to load the library:

     System.loadLibrary(org.opencv.core.Core.NATIVE_LIBRARY_NAME);
    

提交回复
热议问题