Re: [Linux-uvc-devel] Re: Test of the driver on GNU/Debian amd64
Linux UVC driver and tools
Brought to you by:
pinchartl
From: <Oli...@id...> - 2006-01-07 23:56:19
|
Hello, <comment> A little bit off-topic, as this talk about OpenCV... Next questions about OpenCV should maybe done on the OpenCV mailing list: http://www.yahoogroups.com/group/OpenCV </comment> > I was wondering if you had a sample piece of code for changing the > camera resolution? I seem to be getting 640x480 nice and smooth, but i > would rather work in 320x240, limitations on my processing algorithms. > Is there a way to grab straight from the camera at this resolution or > should i just convert in my application? There is already a heavy load > on the processors by the way. here is the Python code for doing this: # set the wanted image size from the camera highgui.cvSetCaptureProperty (capture, highgui.CV_CAP_PROP_FRAME_WIDTH, 320) highgui.cvSetCaptureProperty (capture, highgui.CV_CAP_PROP_FRAME_HEIGHT,240) I will let you make the C code as an exercice. ;-) Have a nice night. Olivier -- . __ . ___ __. | Olivier Bornet Oli...@id... / / ` / / / / / | IDIAP http://www.idiap.ch/~bornet/ / / / / /--/ /--' | CP 592 http://www.idiap.ch/~bornet/pgp/ / /__.' / / / / | CH-1920 Martigny PGP-key: 0xC53D9218 |