Create a low poly mesh of an image.
-
Make sure you have at least
numpy v1.9.1
andscipy v0.16
installed. If you do not have them, runsource scipy.sh
to downaload them. Otherwise, skip this step because it takes a while to download and install scipy via pip (at least for me). -
Install the other dependencies via pip with
source setup.sh
.
You can either run the application on the command line or on a local development server.
Just pass the path to an image or the url of an image as the first argument to poly.py
.
$ python poly.py http://static.guim.co.uk/sys-images/Guardian/About/General/2011/9/7/1315413211669/A-fruit-bowl-007.jpg
To start the server, just run python __init__.py
and open the browser at 127.0.0.1:5000
.