On 2013-10-07 13:17:37, Joey Hess wrote: > Antoine Beaupré wrote: >> > The video is a bit laggy still, probably because it's >> > moving a lot of data around. Comparing with eg, cheese, >> > which must set the camera to a lower res and so has a much >> > less lagged video display. >> >> Does it change the resolution or truncate the widget? > > Based on the refresh rate it is getting maximum resolution frames and > scaling them down for display.
Thanks. For the record, I still have not figured out how to cleanly integrate this into Monkeysphere. Sure, I could downscale *all* webcams to 640x480, but that seems like wasting precious resolution for higher end cameras, and putting a higher resolution may break cheaper models. I could probe the screen resolution fairly easily: http://stackoverflow.com/questions/3129322/how-do-i-get-monitor-resolution-in-python but then that would give me only an upper bound (and even then) on the acceptable resolution, not at all an idea of acceptable (say) aspect ratios (let alone actual "native" resolutions). So I'm a little stuck. I'm tempted to just keep this bug open until better camera support lands in Python (!) so that this stuff can be done more natively. For example, if a v4l compat layer would be available in python... those ioctls could actually work. There's the possibility that opencv saves the day, but I am still waiting feedback on that comment: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723154#27 (Message-ID: <[email protected]>) ... for code that could set the resolution in Python natively with OpenCV. Thanks for any further feedback, at least we now know we have a workaround! :) A. -- If you have come here to help me, you are wasting our time. But if you have come because your liberation is bound up with mine, then let us work together. - Aboriginal activists group, Queensland, 1970s
pgpF_O0XXZPzN.pgp
Description: PGP signature

