Skip to content

Instantly share code, notes, and snippets.

@salgo60
Last active June 13, 2020 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salgo60/67fafb8c2d41e46bd449939ecd0225e1 to your computer and use it in GitHub Desktop.
Save salgo60/67fafb8c2d41e46bd449939ecd0225e1 to your computer and use it in GitHub Desktop.
testing Image Colorization API
# 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())
@salgo60
Copy link
Author

salgo60 commented Jun 13, 2020

@salgo60
Copy link
Author

salgo60 commented Jun 13, 2020

Test 2
In picture
inbild

Out picture
output2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment