Ask Your Question

Revision history [back]

I want get image with my device

Hi all,

I want to catch image from UVC capture card,

The resolution of this device is 1920X1081,

I was setting this resolution as following:

///////////////////////////////////////////////////

VideoCapture camera1;

camera1.open(0);

camera1.set(CV_CAP_PROP_FOURCC,CV_FOURCC('U','Y','V','Y'));

camera1.set(CV_CAP_PROP_FRAME_WIDTH,1920);

camera1.set(CV_CAP_PROP_FRAME_HEIGHT,1081);

//////////////////////////////////////////////////

But when I get height information, it will be 1080,

Is OpenCV allow catch special size image?

Please help me. Thanks.

I want get image with my device

Hi all,

I want to catch image from UVC capture card,

The resolution of this device is 1920X1081,

I was setting this resolution as following:

///////////////////////////////////////////////////

VideoCapture camera1;
 camera1.open(0);
 

VideoCapture camera1;

camera1.set(CV_CAP_PROP_FOURCC,CV_FOURCC('U','Y','V','Y')); camera1.set(CV_CAP_PROP_FRAME_WIDTH,1920);

camera1.open(0);

camera1.set(CV_CAP_PROP_FOURCC,CV_FOURCC('U','Y','V','Y'));

camera1.set(CV_CAP_PROP_FRAME_WIDTH,1920);

camera1.set(CV_CAP_PROP_FRAME_HEIGHT,1081);

//////////////////////////////////////////////////

camera1.set(CV_CAP_PROP_FRAME_HEIGHT,1081);

But when I get height information, it will be 1080,

Is OpenCV allow catch special size image?

Please help me. Thanks.