A Python library for quantizing the colors in an image.
It uses k-means clustering for image quantization.
python get_colors.py -k <n_clusters>
or
from get_colors import get_colors
color_weights = get_colors(4)
A Python library for quantizing the colors in an image.
It uses k-means clustering for image quantization.
python get_colors.py -k <n_clusters>
or
from get_colors import get_colors
color_weights = get_colors(4)