A greedy algorithm for generating string art portraits.
-
Clone the repository
https://github.com/akshatphumbhra/StringArt.git -
Install the requirements
$ pip install -r requirements.txt -
Adjust parameters in parameters.py. This includes all options for variations in hyper-parameters as well as different functionality.
-
To create a portrait based on a single target image with defined parameters, run the python script.
$ python3 stringArt.py -
To run simulations of multiple images with changing parameters, adjust the paramDict variable in generateArt.py and run:
$ python3 generateArt.py
The imgs/ directory contains the target images used in my simulations. The simulations/ directory contains the results of the simulations in both png and eps formats.