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)