How to capture an image with OpenCv?
I want to capture an image from my webcamera using opencv. I read this http://www.cs.iit.edu/~agam/cs512/lect-n…000000000000000 but CvCapture* capture = cvCaptureFromCAM(0);
gives me this error..
@HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream.: Device or resource busy
Unable to stop the stream.: Bad file descriptor
HIGHGUI ERROR: V4L: Pixel format of incoming image is unsupported by OpenCV@
To Download the project of OpenCV --> http://dl.dropbox.com/u/11379868/QtOpenCV.zip
What i want to do is when you press the capture button to take a picture and to have the option to save it..
On Ubuntu 10.10
This looks like an OpenCv only question, though your app is written using Qt. You may want to ask again in OpenCv forum?
Do you have any link for the opencv forum? I found this : "OpenCv Users":http://opencv-users.1802565.n2.nabble.com/
have a look at this http://stackoverflow.com/questions/851679/saving-an-image-in-opencv