does anyone know how to use libjeg from within memory in python

Chris Colbert sccolbert at gmail.com
Tue Oct 13 06:40:14 EDT 2009


My emails must not be making it to list... I posted a solutions about
10 minutes after I posted the questions.

Thanks!

On Tue, Oct 13, 2009 at 12:35 PM, Dave Angel <davea at ieee.org> wrote:
> Chris Colbert wrote:
>>
>> Say I use python to talk to a wireless webcamera that delivers images
>> via http requests.
>>
>> I request an image and read it into a buffer, but the image is in jpeg
>> format.
>>
>> I would like to convert this to a simple RGB format buffer to pass to
>> numpy. Has anyone managed this using libjpeg or any other lib?
>>
>> Cheers!
>>
>> Chris
>>
>>
>
> You probably want to use PIL
>
>    http://www.pythonware.com/products/pil/
>
>
> DaveA
>



More information about the Python-list mailing list