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

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

  • Nov 06 Tue 2007 23:19
  • Pixnet

笨老頭 SHOW ME THE MONEY


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

  • Dec 31 Fri 2004 16:18
  • test

test

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