[Vanhackspace] python options dialog
Joe Bowser
bowserj at gmail.com
Thu Apr 16 10:08:02 PDT 2009
It's possible they pulled the code because of Snowflake. :(
But yeah, there's other Python based solutions (i.e: multitouch.de). I'm
thinking the multitouch may be it's own study group if people want to keep
working on it. :)
Joe
On Wed, Apr 15, 2009 at 6:04 PM, dan anderson <dan.j.anderson at gmail.com>wrote:
> They've got an OS licence but they haven't actually got their source
> available. (If it's python it's been compiled.) I'm not going to
> bother reverse engineering it, since they say they'll put it online
> eventually. There is, of course, an upside; the camera settings
> dialogs should change settings on the hardware, so though run
> seperately the following should let us change said settings:
>
> <camerasettings.py>
> #!/usr/bin/python
> from VideoCapture import Device
> camera = Device(1)
> camera.displayCapturePinProperties()
> camera.displayCaptureFilterProperties()
> while True:
> sleep(1)
> </camerasettings.py>
>
> Obviously it needs the VideoCapture library installed. This is a
> win32-specific python lib, which (fingers crossed) might work under
> WINE. I don't actually own a webcam so I can't test this, but if it
> doesn't work I can poke around and see what other options exist for
> accessing webcam hw properties.
>
> -D
>
>
>
> 2009/4/15 Joe Bowser <bowserj at gmail.com>:
> > We should check out the source and throw it on github:
> >
> > Here's the URL for the code we were using last night:
> > http://tbeta.nuigroup.com/
> >
> > On Wed, Apr 15, 2009 at 1:05 AM, dan anderson <dan.j.anderson at gmail.com>
> > wrote:
> >>
> >> Oh, right, I forgot that it's written in python. If they're using this
> >> library, or one whose image data converts easily, one can control
> >> brightness and contrast of images - these are not in the hardware and
> >> so are coarser and less useful, but are computationally cheap:
> >> currentImage =
> >> ImageEnhance.Brightness(camera.getImage()).enhance(brightness)
> >> processedImage = ImageEnhance.Contrast(cuerrentImage, contrast)
> >>
> >> 2009/4/15 dan anderson <dan.j.anderson at gmail.com>:
> >> > As long as the video camera opens via:
> >> >
> >> > from VideoCapture import Device
> >> > camera = Device(1)
> >> >
> >> > Then the following two lines will open useful camera settings, which
> >> > will allow us to have a clean initial image to start with, making
> >> > calibration easier and giving better data because of reduced noise and
> >> > a wider usable range.
> >> >
> >> > camera.displayCapturePinProperties()
> >> > camera.displayCaptureFilterProperties()
> >> >
> >> > When it gets to finishing touches (possibly never) would matte
> >> > blacking the interior (not just the inside lips of the rails) stop
> >> > much of that background IR? It might be possible to put aligned
> >> > polarizers in front of both the lights and the camera lens so that it
> >> > could be used with My materials knowledge is terrible; are there low
> >> > cost polarizing materials with high IR pass? It would need more or
> >> > higher output LEDs to hit the same total lumens, but it would filter
> >> > out a great deal of bg noise. Hell, the easiest and most efficient way
> >> > to do it, if the material's cheap enough, is to just lay a sheet over
> >> > the bottom side.
> >> >
> >> > It was a blast, I hope to make it next week.
> >> >
> >> > -Dan
> >> >
> >> _______________________________________________
> >> Vanhackspace mailing list
> >> Vanhackspace at lists.uselessdegree.net
> >>
> http://lists.uselessdegree.net/listinfo.cgi/vanhackspace-uselessdegree.net
> >
> >
> > _______________________________________________
> > Vanhackspace mailing list
> > Vanhackspace at lists.uselessdegree.net
> >
> http://lists.uselessdegree.net/listinfo.cgi/vanhackspace-uselessdegree.net
> >
> >
> _______________________________________________
> Vanhackspace mailing list
> Vanhackspace at lists.uselessdegree.net
> http://lists.uselessdegree.net/listinfo.cgi/vanhackspace-uselessdegree.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uselessdegree.net/private.cgi/vanhackspace-uselessdegree.net/attachments/20090416/4267a7da/attachment-0001.htm>
More information about the Vanhackspace
mailing list