(oc) I wrote an algorithm that transforms photos into mosaics 

Jun 1, 2017 9:52 AM

LinesLab

Views

288790

Likes

5040

Dislikes

116

This picture of David Bowie was created using a strange algorithm plotting system

Hey Imgur!
Some may have seen my previous post (Single line spiral drawing: http://imgur.com/gallery/qv1xc
paint by numbers generator: http://imgur.com/gallery/x4bXl and some more).After seeing cool robots that can draw like e-David I wanted to try it out myself. Since I can not afford an industrial robot I bought a simple plotter that can hold a pen and started programming. Because the plotter can hold only a pen it can only draw lines with a constant width, so there is not a lot of variety… not a very promising start. But after some time I came to love the simplicity of a simple line and utilized it in the drawings.
Here is a new algorithm that I recently made and I would like to hear what you think of it.
The algorithm divides the photos into small tiles and randomly selects a style for each tile, the result is a bit messy but still very recognizable. Especially when you squinch your eyes.

I will soon try to draw these with my plotter and see how it turns out on real paper.

All the images I use are under creative commons license or are free to use under modification.
This is a photo of David Bowie.

A photo of a homeless man. I like this result a lot, because there are still many small details that are preserved.

A portrait of Alicia Vikander

Leon the professional. My favorite movie!

Edit: I recently started a Kickstarter campaign to buy new equipment. For those who are interested:
https://www.kickstarter.com/projects/871698903/lineslab-custom-made-art-for-everyone

If you want to support me please consider liking my facebook page: www.facebook.com/LinesLab/

Edit: Since some wrote me:
While I do sell drawing made with my plotter, I do not sell this one yet. I feel it requires still some fine tuning.
Edit: Thanks for all the messages folks, here is the link to my Etsy shop some asked for: https://www.etsy.com/shop/LinesLab

This is so cool! The Davis Bowie one is the best!!

8 years ago | Likes 1 Dislikes 0

I once sneezed wile performing the toilet around 3 am and fell face first into my child's potty. So this is only mildly impressive

8 years ago | Likes 1 Dislikes 0

Squinch??? You mean squint

8 years ago | Likes 1 Dislikes 0

Will you be releasing the code at any point? These are awesome!

8 years ago | Likes 1 Dislikes 0

Can you share the code? I'm very curious as to how it actually works :)

8 years ago | Likes 1 Dislikes 0

Love these! What a unique talent!

8 years ago | Likes 1 Dislikes 0

Have my upvote.. only because we have same fav movie

8 years ago | Likes 1 Dislikes 0

The Leon one is simply Art

8 years ago | Likes 2 Dislikes 1

The credit should go to the photographer

8 years ago | Likes 2 Dislikes 1

No dickbutt? Lame.

8 years ago | Likes 1 Dislikes 0

I think I looked at the bowie too long I was seeing triangles all night.

8 years ago | Likes 1 Dislikes 0

Open source this shiz yo

8 years ago | Likes 1 Dislikes 0

+1 to Op for noticing and liking a great movie! Leon the professional

8 years ago | Likes 1 Dislikes 0

Sir or Ma'am, you are a legend

8 years ago | Likes 1 Dislikes 0

Thanks! Coincidentally I reading "I am legen" right now.

8 years ago | Likes 1 Dislikes 0

I went to U of I for computer engineering an in one of the cs classes, we had this as an assignment. I made a giant mosaic of all the 1/2

8 years ago | Likes 3 Dislikes 1

Simpson characters using only inner images from other Simpson pictures. I then made a poster of it.

8 years ago | Likes 3 Dislikes 0

@OP, I would like to see a version where the grid layout is preserved, but the only style is the polygons. Confident it will be awesome.

8 years ago | Likes 1 Dislikes 0

folder[neat]

8 years ago | Likes 1 Dislikes 0

Amazing work...But here's a suggestion; Can you work on the grid that cover light areas, their current drawing makes it (1/2)

8 years ago | Likes 1 Dislikes 0

it stand out and difficult to focus on the entire picture (2/2)

8 years ago | Likes 1 Dislikes 0

I am not sure I fully understand. Could you explain that in more detail please?

8 years ago | Likes 1 Dislikes 0

These are amazing!! Thanks for sharing!!

8 years ago | Likes 29 Dislikes 1

Thanks!

8 years ago | Likes 6 Dislikes 0

Creative people amaze me all the time.

8 years ago | Likes 1 Dislikes 0

Mariadaguia133y2

8 years ago | Likes 1 Dislikes 0

Ррщ

8 years ago | Likes 1 Dislikes 0

علاء

8 years ago | Likes 1 Dislikes 0

This is fucking fascinating. Great work. Awesome plotter stuff. I want to buy something from you but I dunno what.

8 years ago | Likes 1 Dislikes 0

Thanks! I really appreciate the exitement.

8 years ago | Likes 1 Dislikes 0

Credit where it's due, dude. I worked in a signshop for years, I've been around plotters forever, never even thought to do this. Awesome.

8 years ago | Likes 1 Dislikes 0

Just curious, do you do any of the mathematics yourself? I think I'm seeing Delaunay and Voronoi but haven't seen the sines one before

8 years ago | Likes 4 Dislikes 0

I might just be blind, but I'm not seeing any Voronoi anywhere.

8 years ago | Likes 1 Dislikes 0

You're right, not here but the first one in the first linked post

8 years ago | Likes 1 Dislikes 0

second*

8 years ago | Likes 1 Dislikes 0

Yes the math is done by me, of course I use existing code for Voronoi diagrams

8 years ago | Likes 4 Dislikes 0

Image algorithms have always been black magic to me. SVD decomposition, edge filtering, all the trivial stuff.

8 years ago | Likes 7 Dislikes 0

Black Magic is comparatively simple actually, image algorithms are complicated as fuck.

8 years ago | Likes 1 Dislikes 0

The 'D' in SVD stands for decomposition.

8 years ago | Likes 2 Dislikes 0

I still say ATM machine sometimes

8 years ago | Likes 2 Dislikes 0

p5? :)

8 years ago | Likes 2 Dislikes 0

What is p5?

8 years ago | Likes 1 Dislikes 0

A js-library for drawing 2d.. looked like youve used it

8 years ago | Likes 2 Dislikes 0

Can you make this an app so people can turn their selfies into mosaics? That would sell.

8 years ago | Likes 190 Dislikes 0

Pleeeeease

8 years ago | Likes 5 Dislikes 1

I thought about turning some of my styles into an app.

8 years ago | Likes 124 Dislikes 0

Need help?

8 years ago | Likes 1 Dislikes 0

And that's how you become a millionaire.

8 years ago | Likes 1 Dislikes 0

Imagine a few thousand people buying your app for a dollar or 2. Now imagine a million people. It's not that many people. You can do it

8 years ago | Likes 1 Dislikes 0

Do it. It will sell. Have a free app but with a water mark in the finished product, then sell an upgrade for about 1 or 2 dollars.

8 years ago | Likes 1 Dislikes 0

Almost like a Prisma add-on

8 years ago | Likes 2 Dislikes 0

He is right. I would deff pay money for this app. You deserve the credit. Not anyone trying to steal this

8 years ago | Likes 2 Dislikes 0

Absolutely do this. Patent it if you can. Guarantee someone is already trying to copy this

8 years ago | Likes 65 Dislikes 1

Don't worry as about a patent as much as intellectual rights. Your code, your ideas, all should be drafted and sent to yourself via email...

8 years ago | Likes 6 Dislikes 0

Or any other validating process to date your material. If you outsource to create the app there's free legal documents to protect your 2/3

8 years ago | Likes 3 Dislikes 0

product... I'd say go for it! It might become a huge hit.

8 years ago | Likes 3 Dislikes 0

Well a patent is crazy expensive and I am moderately poor, so that is not going to happen. ;-)

8 years ago | Likes 31 Dislikes 0

but you right. Patents are stupid expensive!

8 years ago | Likes 3 Dislikes 0

Still. Make the app lol. And remember. The most important thing is not the feature, but the UI

8 years ago | Likes 24 Dislikes 0

Thanks for the tip. Weird user name by the way

8 years ago | Likes 19 Dislikes 0

Gofundme, kickstarter, indiegogo, it would all work

8 years ago | Likes 1 Dislikes 0

How much do you need @LinesLab ? partners?

8 years ago | Likes 1 Dislikes 0

I am not sure I understand your question. I do not require help if that is what you mean.

8 years ago | Likes 1 Dislikes 0

Im saying i would fund something like this

8 years ago | Likes 1 Dislikes 0

Wow thanks. I am starting a Kickstarter soon to buy new equipment and an app only requires some time. So hopefully I will manage on my own.

8 years ago | Likes 1 Dislikes 0