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.
>>
>
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
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
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
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
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