/Image-Compression-with-K-Means-Clustering

This project focuses on steps involved in k-means clustering. Apply k-means clustering with scikit-learn and Python to compress images. Create interactive, GUI components in Jupyter notebooks using Jupyter widgets

Primary LanguageJupyter Notebook

Image-Compression-with-K-Means-Clustering

This project focuses on steps involved in k-means clustering. Apply k-means clustering with scikit-learn and Python to compress images. Create interactive, GUI components in Jupyter notebooks using Jupyter widgets

images Folder has 4 images

compressed_images folder has 4 compressed images

K-means Algorithm:

Here is a Visualization of how algorithm works on data

Image Compressed Image for k=16

I have used Interactive tool from ipywidgets used Intslider object which changes the value of K and output compressed image