Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::VideoCapture cap; if (!cap.isOpened()) // check if succeeded to connect to the camera CV_Assert("Cam open failed");

cap.set(CV_CAP_PROP_FRAME_WIDTH,640); cap.set(CV_CAP_PROP_FRAME_HEIGHT,480);

http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-set

cv::VideoCapture cap;
if (!cap.isOpened())  // check if succeeded to connect to the camera
   CV_Assert("Cam open failed");

failed");

cap.set(CV_CAP_PROP_FRAME_WIDTH,640); cap.set(CV_CAP_PROP_FRAME_HEIGHT,480);

cap.set(CV_CAP_PROP_FRAME_HEIGHT,480);

http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-set