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 Python OpenCV Numpy Scikit Learn