opencv相机接口

时间:2014-07-30 06:01:26

标签: opencv camera jpeg

您好我正在处理基于模板匹配的项目。在我的项目中,我使用的是Rapberry Pi和Logitech C270高清网络摄像头。当我尝试使用示例程序(来自opencv构建目录)从相机拍照时,我在运行时遇到错误:

pi@raspberrypi ~/opencv-2.4.9/finalproject/templet_matching/camera $ ./starter_video 0
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
press space to save a picture. q or esc to quit
init done 
opengl support available 
Corrupt JPEG data: 1 extraneous bytes before marker 0xd2
Mat WIdth:640
Mat Height:480
Corrupt JPEG data: 1 extraneous bytes before marker 0xd0
Mat WIdth:640
Mat Height:480

请帮帮我。谢谢

0 个答案:

没有答案