Skip to content

Instantly share code, notes, and snippets.

View sasiyaxv's full-sized avatar

sashminda iranga sasiyaxv

View GitHub Profile
@sasiyaxv
sasiyaxv / client.py
Created March 20, 2021 08:03 — forked from kylehounslow/client.py
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'