【发布时间】:2013-09-14 11:23:24
【问题描述】:
我正在尝试创建一个 API,它将图像 URL 作为输入并返回 JSON 格式的调色板作为输出。
它应该像这样工作:http://lokeshdhakar.com/projects/color-thief/
但应该在 Python 中。我研究了 PIL(Python 图像库),但没有得到我想要的。有人能指出我正确的方向吗?
Input: Image URL
Output: List of Colors as a palette
【问题讨论】:
-
I have looked into PIL (Python Image Library) but didn't get what I want- 需要详细说明吗? -
由于我是 PIL 的新手,我找不到完成此任务所需的工具。
标签: python python-imaging-library palette