Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting video capture properties no longer works in OpenCV 2.2?

Prior OpenCV 2.2, I was able to do

VideoCapture capture(0);
capture.set(CV_CAP_PROP_FRAME_WIDTH, 640);
capture.set(CV_CAP_PROP_FRAME_HEIGHT, 480);

in order to modify the frame size. But after when I compiled my application against OpenCV 2.2, setting the properties no longer works (the video is displayed correctly though). If I do a get of these values, 0 is returned. And if I look at the size of the captured frame, it is 160 x 120.

I searched online but most of the posts were about the problem in Linux whereas I am running Windows 7 64-bit. My webcam is a Logitech QuickCam Ultra Vision.

Is there anyone experiencing the same problem? Or no problem at all?

Thanks in advance!

like image 789
airfang Avatar asked May 29 '11 07:05

airfang


1 Answers

This problem has been solved in OpenCV 2.3, even with my old Logitech QuickCam Ultra Vision webcam.

like image 138
airfang Avatar answered Oct 21 '22 07:10

airfang