Last active
December 18, 2015 10:29
-
-
Save austinogilvie/5768913 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #call the api w/ some example data | |
| # this one is a drivers license | |
| new_image = open("dl16.jpeg", 'rb').read() | |
| import base64 | |
| #we need to make the image JSON serializeable | |
| new_image = base64.encodestring(new_image) | |
| print yh.predict("imageClassifier", version=3, data=new_image) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment