Bored Panda works better on our iPhone app
Continue in app Continue in browser

BoredPanda Add post form topAdd Post
Tooltip close

The Bored Panda iOS app is live! Fight boredom with iPhones and iPads here.

I Made Art Using Code That Finds Outliers In Photos
User submission
29.7K

I Made Art Using Code That Finds Outliers In Photos

ADVERTISEMENT

Hi, I’m Andrew. I’m a musician, artist, and software engineer. Before Covid, I used to play shows in the Boston area. I had wished I had something to sell at them instead of CDs, which many consider obsolete. That wish grew into a much bigger project. I started working on a book of lyrics, and I decided to fill the book with colorful artwork. I remembered a college class in which we’d learned how to average a series of photos together to remove outliers. I thought, maybe I could make art by somehow doing the opposite. Relying on my C++ programming background, I started work on software that would detect the least average—the outliers.

More info: store.andreweckel.com | Instagram | twitter.com | Facebook

First test result

This was the first image I made with my software. I’ll start by explaining how I made this one.

The setup

I went to Castle Island in Boston and took photos of planes approaching Logan Airport. I used a tripod, so the photos are all framed exactly the same.

The only difference is the position of the planes, clouds, and, in a few instances, birds flying by.

Planes (and birds, too)

When my program combined all the photos into one, it selected not only the planes but the birds as outliers, as well.

More challenging input

ADVERTISEMENT

What would happen if I gave my program a set of images that were totally mismatched?

I gathered up every photo I’ve ever taken in my life — photos of friends, family, nature, everything — and set the program to run with these 10,300 images as input.

ADVERTISEMENT

Every photo I’ve ever taken

A day later, I got my answer.

This image represents the “outliers” from every photo I’ve ever taken.

If you look carefully, you can make out a few specific details, like flower pedals.

The big experiment

Next, I used the same collection of 10,300 images but gave them to the software in sets of 30 at a time, selected by a random number generator.

I did this 5,000 times.

Here are some of the results:

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT

The book: “Fignerales”

Image credits: Store.AndrewEckel.com

I picked my favorites out of the thousands of results and made a book out of them.

I also included lyrics from some of my songs and a little technical section about the program.

ADVERTISEMENT

The book is named after one of the songs, so the title is a nonsense word that sounds like “fingernails”. I promise if you order one, you’ll get a book, not fingernails!

I used five types of paper to make the book:

– index cards for the art
– pink paper for the lyrics
– transparency paper for the one image of me in the book
– white paper for an informational section about the software
– yellow paper for title pages and acknowledgements

After cutting everything to the same size, each book was hole-punched and held together with book screws.

Me and my book

One lesson here for artists is how everything you learn can come together to help and support your art. I used to be jealous of musicians whose “day jobs” were also music-related, because the skills they learned day-to-day were relevant to their music. For this project, I relied on my non-art “job skills”—not only C++ to generate the images, but Excel to organize everything. The book would not have been possible without a huge, color-coded, multi-tab spreadsheet listing all the pages and their attributes.

The whole book project took longer than expected and was plagued by setbacks, particularly printer errors and ink smears.

Side projects often wind up seeming like wastes of time, especially when they keep me away from writing new songs. I’m happy to report that this one is an exception. I love how it looks and still think it was worth it.

ADVERTISEMENT

The software

The software I wrote to make this art is a command line program called LeastAverageImage. I’m going to release the source code for free in 2022.

The hardest part of writing the code was coming up with a definition of the “difference” between two colors.  For example, should I consider light grey more similar to light pink, because of the brightness, or to black, because of the even balance of color elements? I implemented and tested a number of difference equations before settling on one mainly based on hue, which I called Color Ratio.

Music video: “Fignerales, part 1”

I also used the same technique to make a music video!

The input for each frame of the video is one frame from a video of me performing the song, plus 50 randomly chosen photos from that same collection of 10,300.

Every half a second, one of the 50 photos is removed and another (also randomly chosen) is added.

I’m already looking for settings for my next photo project.  Here are some early test results

ADVERTISEMENT

This is my second time in a Bored Panda story.  I was interviewed last year about a prank I played on my co-workers!

30Kviews

Share on Facebook
You May Like
Popular on Bored Panda
Add your comment
Add photo comments
POST
elizabethrbuermann avatar
Crowley The Snake
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

Words cannot express the emotion I feel when looking at these. Is it love? Confusion? Intrigue? It is all. It is beutiful, and also hurts my eyes. I love this so much, contintue your work

alissareed avatar
Alissa Reed
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

This is actually really awesome! I would pay for these and proudly display them! They remind me of a mash up of graffiti, street spray paint art city scapes, and collages from the 80s......idk.....but I like it !

aleckel avatar
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

That's great to hear! I've got the book and some prints for sale here already: https://store.AndrewEckel.com

Load More Replies...
julie42a avatar
Julie Atwood
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

This is such a cool project! I'm fascinated by it! I've noticed that some musicians have a "math brain" for lack of a better term. I've seen this in jazz musicians, multi-instrumentalists, composers, song writers, and truly excellent music educators. I think it must have something to do with using both sides of your brain more than those of us who merely play an instrument. To be able to write songs and lyrics, equations and software, AND take the photos used in this book? That is some serious use of left and right brain. I'm sure you know that you're smart, but I hope you appreciate that your creative ability is rare, and putting all of your skills to use like this is rarer still. Keep up the fantastic work, and keep thinking outside of ALL the boxes, because you could change the world some day.

alexisrabensburg_1 avatar
Fat_babyseal123
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

i dont see the end of any of these objects in the portraits...they're so pretty though!

victorvanhee avatar
Victor Van Hee
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

That's so dope! Well done! I can't wait to try it on my own photos :)

alya_2 avatar
Alya
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

These are incredible! Some are very eery and I love it

sparkiss-art avatar
Sparkiss
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

Very interesting! Enjoyed looking at these. First thought was ‘OK Computer!’ as in ‘Wow!’ Then thought of Radiohead which is crazy because that would be great music to listen to while flipping through the book :) very cool!

sparkiss-art avatar
Sparkiss
Community Member
2 years ago (edited) DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

And perhaps your music as I now understand you are a musician yourself. It’s awesome how the arts can be interconnected!

Load More Replies...
elizabethrbuermann avatar
Crowley The Snake
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

Words cannot express the emotion I feel when looking at these. Is it love? Confusion? Intrigue? It is all. It is beutiful, and also hurts my eyes. I love this so much, contintue your work

alissareed avatar
Alissa Reed
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

This is actually really awesome! I would pay for these and proudly display them! They remind me of a mash up of graffiti, street spray paint art city scapes, and collages from the 80s......idk.....but I like it !

aleckel avatar
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

That's great to hear! I've got the book and some prints for sale here already: https://store.AndrewEckel.com

Load More Replies...
julie42a avatar
Julie Atwood
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

This is such a cool project! I'm fascinated by it! I've noticed that some musicians have a "math brain" for lack of a better term. I've seen this in jazz musicians, multi-instrumentalists, composers, song writers, and truly excellent music educators. I think it must have something to do with using both sides of your brain more than those of us who merely play an instrument. To be able to write songs and lyrics, equations and software, AND take the photos used in this book? That is some serious use of left and right brain. I'm sure you know that you're smart, but I hope you appreciate that your creative ability is rare, and putting all of your skills to use like this is rarer still. Keep up the fantastic work, and keep thinking outside of ALL the boxes, because you could change the world some day.

alexisrabensburg_1 avatar
Fat_babyseal123
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

i dont see the end of any of these objects in the portraits...they're so pretty though!

victorvanhee avatar
Victor Van Hee
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

That's so dope! Well done! I can't wait to try it on my own photos :)

alya_2 avatar
Alya
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

These are incredible! Some are very eery and I love it

sparkiss-art avatar
Sparkiss
Community Member
2 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

Very interesting! Enjoyed looking at these. First thought was ‘OK Computer!’ as in ‘Wow!’ Then thought of Radiohead which is crazy because that would be great music to listen to while flipping through the book :) very cool!

sparkiss-art avatar
Sparkiss
Community Member
2 years ago (edited) DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

And perhaps your music as I now understand you are a musician yourself. It’s awesome how the arts can be interconnected!

Load More Replies...
Popular on Bored Panda
Trending on Bored Panda
Also on Bored Panda