Segmentation-based image filter
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
samples
.gitignore
README.md
TODO.markdown
crop_swatches.py
requirements.txt
rest.py
segment.py
sitemap.xml
swatch_scrape.py
twitter.py

README.md

spatchwork

License: Public Domain

usage:

  1. put the image file(s) in a drectory called targets/
  2. run python segment.py
  3. your output will be in targets, and have a "_processed.png" suffix

dependencies:

  • python
  • numpy
  • scipy
  • scikit-image
  • Pillow
  • tweepy (but only for the twitter bot)

installing on ubuntu:

  1. sudo apt-get install python-dev python-pip
  2. sudo pip install numpy scipy
  3. sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
  4. sudo pip install Pillow scikit-image tweepy

examples:

![example 1](samples/Screen Shot 2014-01-10 at 12.08.25 PM.png.jpeg)

![example 2](samples/Screen Shot 2014-01-10 at 1.13.56 PM.png.jpeg)

![example 3](samples/Screen Shot 2014-01-12 at 7.34.45 PM.png.jpeg)