gpt4 book ai didi

python - 使用 Python (GAE) 读取图像的颜色

转载 作者:太空宇宙 更新时间:2023-11-04 11:06:14 25 4
gpt4 key购买 nike

如何使用 python 使用 google app engine 读取图像的颜色?

示例:我喜欢构建一个函数来确定图像中最醒目的颜色,从而为其设置和谐的背景色。

最佳答案

Images API不(当前)包含像素级功能。引用概述文档:

Note: In order to use the Images API in your local environment you must first download and install PIL, the Python Imaging Library. PIL is not available on App Engine; it is only used as a stub for the Images API in your local environment. Only the transforms provided in the images API are available on App Engine.

社区一直要求完整PIL支持一段时间,但看起来我们必须等待。

关于python - 使用 Python (GAE) 读取图像的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/190675/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com