OpenCV 3.0 VideoCapture doesn't open video file in Java

倾然丶 夕夏残阳落幕 提交于 2019-12-01 11:26:56

I solved my problem like this: Copy the C:\opencv\build\x64\vc12\bin to the system path and restart the Eclipse.

Hope this help someone that may has this problem with OpenCV 3.0.

Even after adding C:\opencv\build\x64\vc12\bin to SYSTEM path, if you cannot open VideoCapture then you could also try coping opencv_ffmpegXXX_64.dll from opencv/build/java/x64 or from opencv\build\x64\vc14\bin. I don't know why this works but it worked for me after trying:

https://stackoverflow.com/a/29920295/677185 and https://github.com/opencv/opencv/issues/4974

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!