Re: PIL and camera.py

2008-08-13 Thread Darius Jack
Alex,

please don't fool us
and don't attach any clause on privacy, confidentiality or the like
in your mail as archives of the mailing list are public.


(cut for clarity)

 ~
 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@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: PIL and camera.py

2008-08-13 Thread Martin Grimme
 please don't fool us
 and don't attach any clause on privacy, confidentiality or the like
 in your mail as archives of the mailing list are public.

This is most likely not Alex' fault.
Some company mail servers add this kind of stuff to every outgoing mail.

Martin


2008/8/13, Darius Jack [EMAIL PROTECTED]:
 Alex,

 please don't fool us
 and don't attach any clause on privacy, confidentiality or the like
 in your mail as archives of the mailing list are public.


 (cut for clarity)

 ~
 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@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

 Send instant messages to your online friends http://uk.messenger.yahoo.com
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: PIL and camera.py

2008-08-13 Thread Jose Manrique Lopez de la Fuente
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 [EMAIL PROTECTED]:
 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@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers




-- 
J. Manrique López de la Fuente
http://www.jsmanrique.es
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: PIL and camera.py

2008-08-13 Thread Ralph Angenendt
Darius Jack wrote:
 Alex,
 
 please don't fool us
 and don't attach any clause on privacy, confidentiality or the like
 in your mail as archives of the mailing list are public.

 Send instant messages to your online friends http://

Could you refrain from posting advertisements to this list?

Ralph


pgp36pmgGqFdO.pgp
Description: PGP signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: PIL and camera.py

2008-08-12 Thread Alex T. W. LEUNG
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@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


PIL and camera.py

2007-05-21 Thread D. Scott Brown
The Python Bora tutorial indicates that JPEG saving was omitted from
Elvis Pfutzenreuter's camera.py due to the absence of PIL. Thanks to
the excellent efforts of Matt Croydon and the PyMaemo team, it looks
like we now have PIL and thus JPEG support in Python 2.5.1.

In camera.py example app, here's the spot to put code for saving the
video buffer to a file:

def buffer_cb(pad, buffer):
# Here you have a chance to do something with the image buffer
return True

I can write the buffer directly to a file, and get something Photoshop
can import as 16 bit RAW, but I'm having trouble getting PIL to work
with it. I've tried lots of different arguments for
Image.frombuffer(mode, size, data, raw, mode, 0, 1), but most of
what comes out is noise. Any suggestions?

With hopeful thanks,
Scott
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers