【OpenCV】no opencv_java*** in java.library.path 和 java.lang.UnsatisfiedLinkError: org.opencv.videoio.
opencv
OpenCV: 开源计算机视觉库
项目地址:https://gitcode.com/gh_mirrors/opencv31/opencv
免费下载资源
·
目录
目录
1. 报错信息 no opencv_java*** in java.library.path
1.1. 解决方法 no opencv_java*** in java.library.path
2. 报错信息 java.lang.UnsatisfiedLinkError: org.opencv.videoio.VideoCapture.VideoCapture_4(I)J
2.1. 解决方法 java.lang.UnsatisfiedLinkError: org.opencv.videoio.VideoCapture.VideoCapture_4(I)J
1. 报错信息 no opencv_java*** in java.library.path
no opencv_java451 in java.library.path # 不一定是451,有可能是别的,与opencv的版本对应
1.1. 解决方法 no opencv_java*** in java.library.path
https://opencv.org/releases
去官网下载对应的 .dll文件,对于上面的情况则是下载
解压,然后从 build\java\x86 目录中把 opencv_java451.dll 复制到自己的 JDK /bin 目录下即可。
2. 报错信息 java.lang.UnsatisfiedLinkError: org.opencv.videoio.VideoCapture.VideoCapture_4(I)J
java.lang.UnsatisfiedLinkError: org.opencv.videoio.VideoCapture.VideoCapture_4(I)J
at org.opencv.videoio.VideoCapture.VideoCapture_4(Native Method)
at org.opencv.videoio.VideoCapture.<init>(VideoCapture.java:157)
2.1. 解决方法 java.lang.UnsatisfiedLinkError: org.opencv.videoio.VideoCapture.VideoCapture_4(I)J
在相应的类中增加如下代码
static {
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}
GitHub 加速计划 / opencv31 / opencv
166
15
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:5 个月前 )
ae57c54d
Update IPP integration #26463
Please merge together with https://github.com/opencv/opencv_3rdparty/pull/88
Supported IPP version was updated to IPP 2022.0.0 for Linux and Windows. 32-bit binaries are dropped since this release.
Previous update: https://github.com/opencv/opencv/pull/25935 13 小时前
f5c06f8b
Fix overlow pointers. 13 小时前
更多推荐
已为社区贡献6条内容
所有评论(0)