问题描述
在我的项目中,我想从网络摄像头捕获图像。
In my project I want to capture image from my webcam.
我按照。
配置完成后,我测试了样本代码,应用程序找到了我的网络摄像头
After configuration is finished, i tested samples codes and the application found my webcam
设置:设置设备0
设置:Namuga 1.3M网络摄像头
SETUP: Namuga 1.3M Webcam
设置:无法使用SmartTee找到预览引脚
SETUP: Couldn't find preview pin using SmartTee
设置:捕获回调集
设置:设备已设置好并准备好捕获。
SETUP: Device is setup and ready to capture.
然后我得到一个错误,即.dll错误。
and then i got an error which is .dll error.
我使用的是Windows 7 x64。
I use windows 7 x64.
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: C:\Users\Administrator\AppData\Local\Temp\javacpp153028723186\jniopencv_core.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:418)
at com.googlecode.javacpp.Loader.load(Loader.java:368)
at com.googlecode.javacpp.Loader.load(Loader.java:315)
at com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.googlecode.javacpp.Loader.load(Loader.java:334)
at com.googlecode.javacpp.Loader.load(Loader.java:315)
at com.googlecode.javacv.cpp.opencv_core$CvArr.<clinit>(opencv_core.java:158)
at com.googlecode.javacv.VideoInputFrameGrabber.grab(VideoInputFrameGrabber.java:158)
at GrabberShow.run(GrabberShow.java:24)
at java.lang.Thread.run(Unknown Source)
我如何解决这个问题?
推荐答案
检查您的Opencv版本和JavaCv版本是否相互匹配。您可以在javacv-bin上的自述文件中检查它是否具体说明了opencv所需的版本。
Check whether your Opencv version and JavaCv versions are matching each other. You can check that on the readme file on javacv-bin it specifically say about the required version of the opencv.
这篇关于Windows 7中的Javacv UnsatisfiedLinkError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!