简体   繁体   English

使用Python和Open Cv 2.3捕获图像

[英]Capture Image using Python and Open Cv 2.3

I am using Linux Mint 12, Kernel 3. I have installed and configured Open CV 2.3. 我正在使用Linux Mint 12,内核3。我已经安装并配置了Open CV 2.3。 I can capture images and videos using my camera "through gucview. I can capture videos using cheese "but problems happen with photos". I can read images using Open CV, but I can't capture images from Web cam. When I capture an image, I get an empty window. When I check if the image is captured or not, I get True as a result. I am using "Python Bindings" Any help with that! 我可以使用相机“通过gucview捕获图像和视频。可以使用奶酪捕获图像,但是照片会发生问题。”我可以使用Open CV读取图像,但是无法从网络摄像头捕获图像。图像,我得到一个空窗口,当我检查图像是否被捕获时,结果为True,我正在使用“ Python Bindings”。

First make sure that you have correctly installed ffmpeg and other required stuff for opencv 2.3 首先,请确保您已正确安装ffmpeg和其他OpenCV 2.3所需的东西

If Mint has package for opencv 2.3, completely remove opencv from your computer. 如果Mint具有适用于opencv 2.3的软件包,请从计算机中完全删除opencv。 and install it again. 并再次安装。

http://jayrambhia.wordpress.com/2012/05/02/install-opencv-2-3-1-and-simplecv-in-ubuntu-12-04-precise-pangolin-arch-linux/ http://jayrambhia.wordpress.com/2012/05/02/install-opencv-2-3-1-and-simplecv-in-ubuntu-12-04-precise-pangolin-arch-linux/

I was facing the same problem in ubuntu 11.10. 我在ubuntu 11.10中遇到了同样的问题。 If Mint doesn't have OpenCV 2.3 package, re-install opencv 2.3.1 from http://www.marcolancini.it/other/opencv_install_231.php 如果Mint没有OpenCV 2.3软件包,请从http://www.marcolancini.it/other/opencv_install_231.php重新安装opencv 2.3.1

To capture images in opencv 2.3.1 在opencv 2.3.1中捕获图像

http://jayrambhia.wordpress.com/2012/05/10/capture-images-and-video-from-camera-in-opencv-2-3-1/ http://jayrambhia.wordpress.com/2012/05/10/capture-images-and-video-from-camera-in-opencv-2-3-1/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM