Page 1 of 1

Sending Image Data over HTTP

Posted: Thu Dec 14, 2017 10:11 am
by goliatone
Hi,
I'm trying to capture motion and send a frame/image to a service behind a URL.

If I can have a string with an image's content, I can craft an HTTP request using a TCP socket client. Also, is there a way to serialize an image into a string?

What is the OpenMV way of sharing images with external services?

Re: Sending Image Data over HTTP

Posted: Thu Dec 14, 2017 1:54 pm
by goliatone
To answer myself, it looks like the mjpeg_streamer_2.py example might serve as a reference.

Re: Sending Image Data over HTTP

Posted: Fri Dec 15, 2017 12:23 am
by kwagyeman
Yep, that's what the demos are for.

Re: Sending Image Data over HTTP

Posted: Sun Dec 17, 2017 6:51 am
by futuremeng
Thanks