/lowpolypy

Create Low-Poly Versions of Images

Primary LanguagePythonMIT LicenseMIT

LowPolyPy

Open In Colab

Generate Low-Poly Versions of Images:

Samples

Run it on Colab

Run this notebook in Google Colab to get started quickly.

Thanks to @maschere for putting this notebook together!

Run Locally

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

I'm currently working on wrapping these scripts in a Django project and getting it hosted on Heroku.

Prerequisites

Clone this repository and navigate to the project directory:

git clone https://github.com/tasercake/lowpolypy
cd lowpolypy

Installing

Lowpolypy can't be installed via pip (yet), but the setup is simple nonetheless.

Install dependencies:

pip install -r requirements.txt

Try It Out

From the root of the project directory, run

python -m lowpolypy run './images/giraffe.jpg'

This should create a new image in the images directory.

Built With

  • OpenCV - Image manipulation library
  • PIL - For easy(er) image I/O
  • NumPy & SciPy - Matrix ops, Triangulation, Voronoi tesselation, etc.

License

This project is licensed under the MIT License - see the LICENSE.md file for details