OpenCV 3.0 VideoCapture无法在Java中打开视频文件 [英] OpenCV 3.0 VideoCapture doesn't open video file in Java
问题描述
带有Java的OpenCV 3.0无法打开视频文件,但可以通过相机启动.在我使用OpenCV 3.0-beta之前,它在两个版本中都运行良好,但是在2015年4月24日发布的OpenCV 3.0中,它不适用于视频文件.
OpenCV 3.0 with Java cannot open video file, but it woks with camera. Before I was using OpenCV 3.0-beta it was working well in both, but in OpenCV 3.0 which is released on 2015-04-24 doesn't work with video file.
如果有人知道OpenCV 3的这个问题,请告诉我原因和解决方法.
If anyone know about this problem of OpenCV 3, please tell me the reason and how to solve this.
推荐答案
我这样解决了我的问题:将C:\opencv\build\x64\vc12\bin
复制到系统路径并重新启动Eclipse.
I solved my problem like this: Copy the C:\opencv\build\x64\vc12\bin
to the system path and restart the Eclipse.
希望这对可能在OpenCV 3.0中遇到此问题的人有所帮助.
Hope this help someone that may has this problem with OpenCV 3.0.
这篇关于OpenCV 3.0 VideoCapture无法在Java中打开视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!