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
2 | No.2 Revision |
cv::VideoCapture cap;
if (!cap.isOpened()) // check if succeeded to connect to the camera
CV_Assert("Cam open http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-set