Making String Art images based on String Art: Towards Computational Fabrication with a single connected thread or a path in a graph of N vertices that makes an image.
Example 1:
Example 2:
Usage:
- Circle:
converter = StringImageCircle(img_path, radius, nPins)
result_img = converter.Convert(max_lines=2500)
- Square:
converter = StringImageSquare(img_path, dim, nPins, noise=5)
result_img = converter.Convert(max_lines=2500)
Adding Noise to Pin Positions is used to reduce Moire effect.
A video example of string art conversion process (libx265 codec is needed for playing it): Link
To see the lines data(the start pin and end pin of each line) use converter.Lines:
print(converter.Lines)