Costa Rica
Belinda Brown, belindabrownr04@gmail.com
This project provides a Python script to convert an input image into a vectorized image using KMeans clustering.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Python 3.6 or higher
- pip
- Place your input image in the project directory and name it
input.png
. - Run the
main.py
script:
python main.py
- The vectorized image will be saved as
vector_output.png
in the project directory. SVG and PDF versions of the image will also be created.
- OpenCV - Used for image processing
- NumPy - Used for numerical computations
- Pillow - Used for handling images
- scikit-learn - Used for KMeans clustering
- Matplotlib - Used for creating the output image