java 调用 opencv处理图像时所需的dll文件
将文件放在工程根目录,在程序开始时加载下面的语句
String relativelyPath = System.getProperty("user.dir");
System.load(relativelyPath + "\\opencv_java340-x64.dll");
如果不添加,会报错 Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.imgcodecs.Imgcodecs.imread_1(Ljava/lang/String;)J