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

2009-10-13 Thread Chris Colbert
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 wrote: > Chris Colbert wrote: >> >> Say I use python to talk to a wireless webcamera that delivers images >> via http requests. >> >

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

2009-10-13 Thread Dave Angel
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

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

2009-10-13 Thread Chris Colbert
Heh, for whatever reason, your post is dated earlier than my response, but wasn't here when I sent mine. But yeah, PIL worked. On Tue, Oct 13, 2009 at 12:04 PM, Stefan Behnel wrote: > Chris Colbert wrote: >> Say I use python to talk to a wireless webcamera that delivers images >> via http request

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

2009-10-13 Thread Chris Colbert
In answering my own question, this can be done trivially with PIL. Here is a self contained example: In [1]: import httplib In [2]: from PIL import ImageFile In [3]: import numpy as np In [4]: conn = httplib.HTTPConnection('www.therealstevencolbert.com') In [5]: conn.request('GET', '/dump/IMG

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

2009-10-13 Thread Stefan Behnel
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 manage

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

2009-10-13 Thread Chris Colbert
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 l