25

GitHub - theveloped/ThreadTone: a halftone representation of an image made of th...

 6 years ago
source link: https://github.com/theveloped/ThreadTone
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ThreadTone | a halftone representation of an image made of thread

The process of generating an image with thread is an idea of Petros Vrellis. As I've documented here the process is comprised of three steps:

  • Image pre-processing (cropping, resizing, etc.)
  • Algorithm to place threads
  • In my case parsing the result to G-Code for automated fabrication

To use this tool, run:

python threadTone.py -p [image-path] -l [number-of-lines-to-draw] -n [number-of-pins-to-draw-with]

ex: python threadTone.py -p kitten.jpg -l 2000 -n 250
ex: python threadTone.py -p puppr.png

Note: imgPath is a required field, and to give a value to numPins

A set of two example images can be found below. Please refer to my blog for more details.

Threaded portrait of Poetin

Threaded portrait of Angelina

License

This script is released under MIT License.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK