[sugar] Simple camera API/Pippy fun scripts

Gabriel Burt gabriel.burt
Tue Nov 13 04:03:37 EST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simple_cam.zip
Type: application/zip
Size: 1631 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/sugar/attachments/20071113/85d01116/attachment.zip 



More information about the Sugar-devel mailing list