Skip to content

Instantly share code, notes, and snippets.

View danecjensen's full-sized avatar
🎯
Focusing

Dane Jensen danecjensen

🎯
Focusing
View GitHub Profile
@danecjensen
danecjensen / client.py
Created May 6, 2020 20:04 — 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'