[原]OpenCV2.2无法打开摄像头或读取视频的解决方法

请参见

https://code.ros.org/trac/opencv/ticket/735

问题情况:

Unable to get videos from Webcam after an upgrade from OpenCV 2.1. It shows only a black or grey screen.Tested with both 32 bit binary package and 64 bit manually compiled libraries, but to no avail.It works fine with OpenCV 2.1 libraries.

解决方法:

最好的解决方法就是使用svn里最新的版本(最新版本内的代码已经更新,但是sourceforge内的2.2 zip包内未更新)。或者亦可按照其中以下这个文件修改相应源码patch_highgui_Camera.patch

阅读全文
类别: Cv  查看评论

转载于:https://www.cnblogs.com/simbaforrest/archive/2011/01/04/2238700.html

你可能感兴趣的:(人工智能)