Skip to content

Instantly share code, notes, and snippets.

@OlafenwaMoses
Last active May 29, 2019 14:42
Show Gist options
  • Save OlafenwaMoses/d675f84c0a9601d7d413608eab56fa59 to your computer and use it in GitHub Desktop.
Save OlafenwaMoses/d675f84c0a9601d7d413608eab56fa59 to your computer and use it in GitHub Desktop.
import requests
image_data = open("office.png","rb").read()
#REMEMBER TO REPLACE IP '165.22.72.67' below with the IP of your Ubuntu server
response = requests.post("http://165.22.72.67:80/v1/vision/detection",files={"image":image_data}).json()
print(response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment