Have started a new project called autonymo.us where I have let one of my painting robots go off on its own. It experiments and tries new things, sometimes completely abstract, other times using a simple algorithm to complete a painting. Sometimes it uses different combinations of the couple dozens I have written for it.
Most of the results are horrendous. But sometimes it comes up with something really beautiful. I am putting the beautiful ones up at the website autonymo.us. But also thought I would share new algorithms discoveries here.
So the second algorithm we discovered looks really good on smiling faces. And it is really simple.
Step 1: Detect that subject has a big smile. Seriously cause this doesn’t look good otherwise.
Step 2: Isolate background and separate it from the faces.
Step 3: Quickly cover background with a mixture of teal & white paint.
Step 4: Use K-Means Clustering to organize pixels with respect to r, g, b, values and x, y coordinates.
Step 5: Paint light parts of painting in varying shades of pyrole orange.
Step 6: Paint dark parts of painting in crimsons, grays, and black.
A simple and fun algorithm to paint smiling portraits with. Here are a couple…