Hi, I'm using a logitech quickcam pro 3000 on Ubuntu 10.04. When I run a simple program with OpenCV to display the output from a camera I get the following output:
Code:
HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream.: Bad file descriptor
A window still opens with the output from the camera, but it seems very low quality and has far less pixels then it should. The camera built into my computer runs the same program with no problems. My code for the program is simply:
Code:
#include "highgui.h"
int main(int argc, char** argv){
cvNamedWindow("Camera", CV_WINDOW_AUTOSIZE);
CvCapture* capture = cvCreateCameraCapture(1);
IplImage* frame;
while(1){
frame = cvQueryFrame(capture);
if(!frame)break;
cvShowImage("Camera", frame);
char c = cvWaitKey(33);
if(c == 27) break;
}
cvReleaseCapture(&capture);
cvDestroyWindow("Camera");
}
One further note to make is that I still have the bad quality and low number of pixels with the logitech even when using webcam program. I can seem to find any drivers to update or anything though. Any suggestions on what to do? Thanks.