Skip to content

Instantly share code, notes, and snippets.

@OlafenwaMoses
Created August 5, 2019 19:56
Show Gist options
  • Save OlafenwaMoses/18357c54fff56c13d97d8724d18c1640 to your computer and use it in GitHub Desktop.
Save OlafenwaMoses/18357c54fff56c13d97d8724d18c1640 to your computer and use it in GitHub Desktop.
import requests
image_data = open("test-image.jpg","rb").read()
response = requests.post("http://localhost: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