I ran into the same issue when I was performing stereo calibration. It can be solved by setting image size options
captureR = cvCreateCameraCapture( 0 ); // from camera 1 cvSetCaptureProperty(captureR, CV_CAP_PROP_FRAME_WIDTH, 640); cvSetCaptureProperty(captureR, CV_CAP_PROP_FRAME_HEIGHT, 480); if(!captureR) { printf("\nCouldn't open the camera1\n"); return -1;} captureL = cvCreateCameraCapture( 1 ); //from camera 2 cvSetCaptureProperty(captureL, CV_CAP_PROP_FRAME_WIDTH, 640); cvSetCaptureProperty(captureL, CV_CAP_PROP_FRAME_HEIGHT, 480); if(!captureL) { printf("\nCouldn't open the camera2\n"); return -1;}
source share