[sugar] Simple camera API/Pippy fun scripts
Peter Krenesky
peter at osuosl.org
Tue Nov 13 11:20:52 EST 2007
Hi Gabriel,
My team is working on porting helix producer to python for use on the olpc.
It will do video capture but since its an encoding platform its not that
simple to use.
Have you checked out the gstreamer bindings and the Record activity? I'm not
sure if it will do what you need but it does video recording as well.
-Peter
On Tuesday 13 November 2007 1:03:37 am Gabriel Burt wrote:
> Hey,
>
> After using Pippy and loving it, I wanted to make similar, simple
> scripts controlling the camera. I wrote a couple simple python
> classes to enable this (and the like):
>
> from pixbuf_camera import PixbufCamera
>
> camera = PixbufCamera ()
> for i in range(0, 10):
> # Take a picture and wait for one second
> pixbuf = camera.takePicture ()
> pixbuf.save ("test_%s.jpg" % i, 'jpeg')
> time.sleep (1)
>
> This isn't really usable within Pippy since it doesn't have text (or
> aural) output. Is there place where a simple API of this sort could
> go? (Or could Pippy be modified to give scripts more flexible output?)
> Are there already platform-level APIs for the camera? Right now it
> just takes snapshots from the camera, but it could/should be extended
> to do video and other fun things (motion detection).
>
> Gabriel
More information about the Sugar
mailing list