A Python project for image compression using PCA and KMeans clustering, featuring a Streamlit web UI.
- Compress images using Principal Component Analysis (PCA)
- Compress images using KMeans clustering
- Easy-to-use Streamlit interface
- Organized code in separate folders for each method
-
Clone the repository:
git clone https://github.com/roshan-acharya/Image-Compressor.git cd Image-Compressor -
Install dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
cd KMeans streamlit run app.pycd PCA streamlit run app.py
- Upload an image via the Streamlit UI.
- Choose between PCA or KMeans compression.
- Adjust parameters and download the compressed image.
Author: Roshan Acharya
License: MIT