Python获取图片的颜色和主要颜色
https://github.com/fengsp/color-thief-pyfrom colorthief import ColorThief
color_thief = ColorThief('/path/to/imagefile')
# get the dominant color
dominant_color = color_thief.get_color(quality=1)
# build a color palette
palette = color_thief.get_palette(color_count=6) 功能广泛
页:
[1]