Sending Image Data over HTTP

Discussion related to "under the hood" OpenMV topics.
goliatone
Posts: 10
Joined: Wed Oct 25, 2017 8:31 am

Sending Image Data over HTTP

Postby goliatone » Thu Dec 14, 2017 10:11 am

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?
goliatone
Posts: 10
Joined: Wed Oct 25, 2017 8:31 am

Re: Sending Image Data over HTTP

Postby goliatone » Thu Dec 14, 2017 1:54 pm

To answer myself, it looks like the mjpeg_streamer_2.py example might serve as a reference.
User avatar
kwagyeman
Posts: 2111
Joined: Sun May 24, 2015 2:10 pm

Re: Sending Image Data over HTTP

Postby kwagyeman » Fri Dec 15, 2017 12:23 am

Yep, that's what the demos are for.
Nyamekye,
futuremeng
Posts: 1
Joined: Sun Dec 17, 2017 6:48 am

Re: Sending Image Data over HTTP

Postby futuremeng » Sun Dec 17, 2017 6:51 am

Thanks

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests