Last active
June 13, 2020 10:36
-
-
Save salgo60/67fafb8c2d41e46bd449939ecd0225e1 to your computer and use it in GitHub Desktop.
testing Image Colorization API
This file contains 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
# test take a picture from Digitalmuseum and adds color | |
# | |
# video https://www.youtube.com/watch?v=Hgwv4FUcwpc | |
# web https://deepai.org/machine-learning-model/colorizer | |
# output below | |
# see also comments kulturnav http://minancestry.blogspot.com/2020/06/draft-kulturnav.html | |
# | |
import requests | |
r = requests.post( | |
"https://api.deepai.org/api/colorizer", | |
data={ | |
'image': 'https://dms-cf-05.dimu.org/image/032yiVc9sp4y?dimension=1200x1200', | |
}, | |
headers={'api-key': 'quickstart-QUdJIGlzIGNvbWluZy4uLi4K'} | |
) | |
print(r.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Infile https://dms-cf-05.dimu.org/image/032yiVc9sp4y?dimension=1200x1200
Outfile