[maemo-developers] PIL and camera.py
From: Alex T. W. LEUNG alexleung at astri.orgDate: Wed Aug 13 07:19:13 EEST 2008
- Previous message: How to get he WLAN MAC address?
- Next message: PIL and camera.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Previous message: How to get he WLAN MAC address?
- Next message: PIL and camera.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]