发布于 2018-03-19 17:03:24
我使用这个web服务来获取一个图像的颜色,但您只能使用Python库逐个检查图像。
https://docs.imagga.com/?python#getting-started-request
代码示例:
import requests
api_key = ''
api_secret = ''
image_url = 'http://docs.imagga.com/static/images/docs/sample/japan-605234_1280.jpg'
response = requests.get('https://api.imagga.com/v1/tagging?url=%s' % image_url,
auth=(api_key, api_secret))
print response.json()https://stackoverflow.com/questions/49359001
复制相似问题