A simple algorithm designed to produce a string/thread representation of an image.
A simple algorithm designed to produce a string/thread representation of an image.
Original idea by Petros Vrellis: A new way to knit (2016).
Numpy
OpenCV
Usage: ./string_line.py [ image_name ] [ number_lines (optional) ]
If number_lines not included in command line arguments, it will default to 1000 lines.
./string_line.py image.jpg
or
./string_line.py image.png 500
Image must be in same directory. Result file will be appended with "_results".