Skip to content

Instantly share code, notes, and snippets.

View edumucelli's full-sized avatar

Eduardo edumucelli

View GitHub Profile
@edumucelli
edumucelli / client.py
Created May 9, 2018 21:25 — forked from kylehounslow/client.py
Send and receive images using Flask, Numpy and OpenCV
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
headers = {'content-type': content_type}