Why are you want to use OpenCV (for capturing image or video)?
If you want to capture image
Qt Code:
CvCapture *capture = 0; IplImage *frame = 0; capture = cvCaptureFromCAM( 0 ); frame = cvQueryFrame( capture );To copy to clipboard, switch view to plain text mode
In frame you get all the data of image.
Bookmarks