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

Dave Angel davea at ieee.org
Tue Oct 13 06:35:54 EDT 2009


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