qt+opencv摄像头程序问题
我现在用的是ubuntu10.10,程序在用到打开摄像头时出现下面的错误,请问究竟是什么问题?
(很奇怪的是,我用fedora11编译同样的代码,出现的错误只有OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file /root/Desktop/OpenCV-2.1.0/src/cxcore/cxarray.cpp, line 3102
terminate called after throwing an instance of 'cv::Exception'
而且我打开这个程序就会报错,但是我开得几次后会有一次没有问题的,摄像头可以打开,而且可以识别人脸。
)
HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV--------------------编程问答-------------------- 请问您的问题解决了吗??
Unable to stop the stream.: Bad file descriptor
HIGHGUI ERROR: V4L: Pixel format of incoming image is unsupported by OpenCV
HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream.: Bad file descriptor
HIGHGUI ERROR: V4L: Pixel format of incoming image is unsupported by OpenCV
OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file /root/Desktop/OpenCV-2.1.0/src/cxcore/cxarray.cpp, line 3102
terminate called after throwing an instance of 'cv::Exception'
what(): /root/Desktop/OpenCV-2.1.0/src/cxcore/cxarray.cpp:3102: error: (-5) Bad image header in function cvCloneImage
The program has unexpectedly finished.
补充:移动开发 , Qt