Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-Means Color Quantization

Simple script that takes in an image and reduces it down to a provided number of distinct colors, while keeping the image as close to the original as possible.

Requirements

  • Python 3.8

Usage

Run the following command:

python src/quant.py -i {ABS_PATH_TO_IMG} -c {NUM_DISTINCT_COLORS}

Once run a window will pop up with the quantized image. Press 0 to exit.

Example Output

Local Graphic

About

Image color quantization using K-Means Clustering & OpenCV

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages