profile-image

kosirm

milan kosir
Qt Opencv webcam viewer

Video Apps 21 comments

Score 65%
65 Likes
35 Dislikes
Sep 24 2008
if(size == Size640) {
cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, 640);
cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_HEIGHT, 480);
qDebug() << "Setting 640x480:CV_CAP_PROP_FRAME_WIDTH:" << cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH);
qDebug() << "Setting 640x480CV_CAP_PROP_FRAME_HEIGHT:" << cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_HEIGHT);

}

returns:
Setting 640x480:CV_CAP_PROP_FRAME_WIDTH: 320
Setting 640x480CV_CAP_PROP_FRAME_HEIGHT: 240 - Jul 06 2009
hi, I'm running example and capture frame size isn't changing, it seems to me that cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, 640); does nothing. Or have I missed something?
Thanks for any reply. - Jul 06 2009