I am trying to do the following (I used an sample code that work and added two lines):
//Some code before
VideoCapture cap(1); // open the default camera
if(!cap.isOpened()) // check if we succeeded
return -1;
cap.set(CV_CAP_PROP_FRAME_WIDTH, 1920); //added
cap.set(CV_CAP_PROP_FRAME_HEIGHT, 1080); //added
//Some code after
So I am trying to set the size of the frame to something else than the basic 640x480, but CV_CAP_PROP_FRAME_xxxxxx is "undefined". I built opencv 3 form Itseez Github on Sept9-2014. This post suggest the feature is not implemented yet but I don't know if it is the case.
If so, is it possible to use the previous way and use
CvCapture* cvCaptureFromCAM(int device)
and
cvSetCaptureProperty
I need the resolution for my detection application. Using Windows 8.1, Visual Studio 2012 and a Logitech HD Pro c920