Primitive Pics: A Really Cool Go Project
This is a really neat project that allows you to create cool photographs from your input.
A target image is provided as input. The algorithm tries to find the most optimal shape that can be drawn to minimize the error between the target image and the drawn image. It repeats this process, adding one shape at a time. Around 50 to 200 shapes are needed to reach a result that is recognizable yet artistic and abstract.
Here's an example of my girlfriend standing in front of the Lennon Wall.
You can use this bash script (once you've installed the Go package) to run multiple passes
#!/bin/sh bin/primitive -i input.png -o output.png -n 300 -m 1