Quote Originally Posted by kosirm View Post
Thanks for code!
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?

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

Any ideas how could I change frame width/height?
Best regards,
Milan
No. This is what I was talking about when I said the highgui functions suck

On some cameras those functions will work, but on most they won't. If you want to control camera properties like capture size and others you'll have to use another image acquisition library or try cvcam as someone else suggested. I never had much luck with it. It'll do basic capture, but that's it.