Ask Your Question

mayhewsw's profile - activity

2014-03-25 08:53:04 -0600 received badge  Student (source)
2014-03-02 22:40:40 -0600 asked a question Can't set video resolution in Java

I'm using the Java bindings for opencv 2.4.8. It seems that the default resolution is 640x480, but my camera is 1280x800. I'm doing the following:

VideoCapture v = new VideoCapture(1);
boolean b = v.set(Highgui.CV_CAP_PROP_FRAME_WIDTH, 1280);
boolean b2 = v.set(Highgui.CV_CAP_PROP_FRAME_HEIGHT, 800);

Both of these values (b, b2) are false. It just doesn't work.

This is all the more puzzling because I know that I can change the resolution with the C++ bindings and C bindings on this computer (ubuntu 12.04) and camera (Microsoft LifeCam Cinema).

(I also asked the question here)

2014-03-02 20:54:39 -0600 received badge  Supporter (source)