pixel_to_svg
pixel_to_svg copied to clipboard
Simple unsupervised segmentation based method for turning a raster image into SVG using potrace.
trafficstars
This is a simple unsupervised segmentation based method for turning a raster image into SVG.
![]()
How to install?
You first need to install pypotrace.
Here are the steps to install pypotrace:
sudo apt-get install build-essential python-dev libagg-dev libpotrace-dev pkg-configgit clone https://github.com/mehdidc/pypotracecd pypotracegit checkout to_xmlrm -f potrace/*.c potrace/*.cpp potrace/agg/*.cpp potrace/*.so potrace/agg/*.sopip install .
Once pypotrace is available, you can install this repo. Here are the steps:
git clone https://github.com/mehdidc/pixel_to_svgcd pixel_to_svgpython setup.py install
How to use ?
Please check the example in https://github.com/mehdidc/pixel_to_svg/tree/master/examples