close
Set the capture width and hight within highgui:

To set format directly, put width and hight in one integer and use
CV_CAP_PROP_FRAME_WIDTH_HEIGHT:

cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH_HEIGHT, 640480 )
or
cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH_HEIGHT, 320280 )
...

Or to use the built in dialogs:
cvSetCaptureProperty(capture, CV_CAP_PROP_DIALOG_COMPRESSION, 0 );
cvSetCaptureProperty(capture, CV_CAP_PROP_DIALOG_SOURCE, 0 );
cvSetCaptureProperty(capture, CV_CAP_PROP_DIALOG_DISPLAY, 0 );
cvSetCaptureProperty(capture, CV_CAP_PROP_DIALOG_FORMAT, 0 );

---------------------------

What you have to do:
==================>更新OPENCV到1.1 XD
arrow
arrow
    全站熱搜

    Jotarun 發表在 痞客邦 留言(0) 人氣()