Simple app that utilizes Kmeans clustering algorithm to compress images.
The notebook at Notebook/K-means.ipynb contains both a from-scratch implementation and a scikit-learn based implementation of the KMeans algorithm to help understand how it works.
- Clone the repository:
git clone https://github.com/your-username/kmeans-image-compressor.git
cd kmeans-image-compressor- Create a virtual environment
python -m venv venv
source venv/bin/activate - Install dependencies
pip install -r requirements.txt- Run the app
streamlit run main.py