[maemo-developers] PIL and camera.py
From: Jose Manrique Lopez de la Fuente jsmanrique at gmail.comDate: Wed Aug 13 15:47:04 EEST 2008
- Previous message: PIL and camera.py
- Next message: Qemu Error on Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I am looking for original camera.py but I can't find it... could somebody provide a link for it? Thanks nad best regards, 2008/8/13 Alex T. W. LEUNG <alexleung at astri.org>: > Hi maemo developers, > > I notice that there was an email with the captioned subject from D. > Scott Brown last email. > > The below code fragment works from me, see if it helps for anyone who > are interested in enhancing the camera.py example. > > def buffer_cb(pad, buffer): > # Here you have a chance to do something with the image buffer > w,h=320,240 > print buffer.size > im = Image.frombuffer('RGB', (w,h), buffer.data, 'raw', 'RGB', > 0, 1) > im.save("foo2.jpeg", "JPEG") > return True > > Alex Leung. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > This message (including any attachments) is for the named > addressee(s)'s use only. It may contain sensitive, confidential, > private proprietary or legally privileged information intended for a > specific individual and purpose, and is protected by law. If you are > not the intended recipient, please immediately delete it and all copies > of it from your system, destroy any hard copies of it > and notify the sender. Any use, disclosure, copying, or distribution of > this message and/or any attachments is strictly prohibited. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > -- J. Manrique López de la Fuente http://www.jsmanrique.es
- Previous message: PIL and camera.py
- Next message: Qemu Error on Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]