Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.51 KB

File metadata and controls

49 lines (32 loc) · 1.51 KB

Image Vectorizer

Costa Rica

License: GPL v3 GitHub Open Source? Yes!

GitHub brown9804


This project provides a Python script to convert an input image into a vectorized image using KMeans clustering.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python 3.6 or higher
  • pip

Usage

  1. Place your input image in the project directory and name it input.png.
  2. Run the main.py script:
python main.py
  1. 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.

Built With

  • 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
Total views

Refresh Date: 2025-07-11