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
- Aug 29 Fri 2008 21:14
set the capture width and hight within highgui: