Image Lossy Compression based on K-Means color clustering
Image compression framework based on color-clustering.
import kmeans.kmeans_compression as kmeans
kmeans.compress(<path to the image>, <number of colors of the compressed output>)
Note: The approximate file size is measured without taking into account the overhead of the (colors,size) annotation.