Skip to content
Turn a lot of colors into a few colors
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
color_quant
README.md
__init__.py
requirements.txt
screenshot.png
setup.py

README.md

Color Quant

A Python library for quantizing the colors in an image.

It uses k-means clustering for image quantization.

Usage

python get_colors.py -k <n_clusters>

or

from get_colors import get_colors
color_weights = get_colors(4)

Developing

Dependencies

You can’t perform that action at this time.