I Wrote an Algorithm to Draw Portraits from Thread | Thread Art
Вставка
- Опубліковано 4 чер 2024
- Check out Brilliant at brilliant.org/jennyma/ & get 20% off annual plan
Ever wanted to draw portraits but didn't know where to start? Well, how about writing an algorithm to do it for you? In this video I take you through my struggleship journey to create a portrait of my parents - from black thread and plywood. From writing a thread placement algorithm from scratch to building a canvas in my first woodworking attempt, to hours and hours of twisting black thread around hundreds of nails. But it's a good time I promise.
This was originally inspired by Petros Vrellis' idea to create art portraits from string - and seen following on various UA-cam channels like Art Insider's feature of Alfred Cheng. I loved this brilliant way of combining technology and algorithms with portrait art and string art. Whether you're a programmer, artist, engineer, or just bored in bed, this is a video for you!
Access the source code I wrote and support me as a creator at: / jennyma
Otherwise, there are implementations others have done available for free as well :)
More Jenny: / vldmrpoutine
✨✨✨✨ LIKE & SUBSCRIBE ✨✨✨✨
0:00 Intro
2:15 Step 1: Writing an Algorithm
5:52 Step 2: Making the Canvas
9:13 Step 3: Threading
Disclosure: This is a sponsored video. Thanks for your support! :) - Наука та технологія
Jenny: yeah the process was pretty complicated.
*Goes to stack overflow like a boss*
The best way to code!!!!
Came here from Reddit. It's really beautiful. Keep it up.
the picture or the engineer?
I have one doubt how to get the algorithm??? Can u plz tell me 🥺
This looks like one of those coding projects where you go "right, the idea is simple enough" and an hour and a half of research later you went mad and conclude it's easier to design a space ship.
Hehe yes! At multiple times during the research phase I considered abandoning the idea altogether 😋
@@JennyMaAviation Hi Jennyma, do you sell the algorithm?
That’s insanely beautiful.
I came from Reddit too. And this is sooo amazing!
Wow! Best thing about it you were absolutely willing to follow through, no matter what come, true inspiration.
This is awesome, huge respect for pulling through with this idea!
The end result was amazing! I'd love to see more computery videos like this.
HOLY COW! THIS IS INCREDIBLE😍😍
A simple yet effective algorithm, and a really cool project. Looks great!
That looks beautiful!
I think you nailed it
I just LOVE this kind of coding adventure. Superb result also.
12:53 I haven’t seen anything like this , it’s unique and magical, what a wonderful tribute to your parents hope they are both alive to be able to see for themselves how gifted their child is , Absolutely brilliant
This was really awesome. Thanks for posting!
I loveddd thisss!! You're so talented Jenny, please upload more projects like this!!
amazing work, really inspiring, well done Jenny!!
This is awesome Jenny!
This is such a beautiful piece and a fascinating process
Oh, and LOVING your gorgeous dining room table. Beautiful patterning in the veneer.😉👍
I'm super impressed with the effort you put into this! Saw this on Reddit, and I'm now a fan!
That's incredible
Thanks for sharing. This is definitely nontrivial work and a great crafting. Some ideas algorithm-wise: 1. Simulated Annealing might produce better result than greedy algo. 2. The current rasterization method of line is by calculating the length of the thread as n and plotting n integer points along the line. This may lead to missing pixels (breaking line). 3. To further enhance the resolution, considering the diameter of the nails and thickness of the thread might be necessary. 4. It would be interesting to have customizable shape of the canvas.
I would have liked a little overview of the code, maybe in the next video! If you ever do an other one involving code.
seconding this!
Me as well.
@Rashard Kenn Castro don’t say give, ppl need to buy from you.this is a business not giving
Is there one with colour in it?
Great work. Looks awesome!
Thank you so much for the code, this is so much to learn, mindblowing :)
You are the David Attenborough of string art. Very well done and presented. I watched start to finish and I have the attention span of a gnat. Thank you!
This was great; great subject, great explanation, great presentation. Sub'd. Loved the music, too. As a dad (and part time woodworker), yes, we can be clamps in a pinch.
Great work & smart idea!
Who hasn't thought of doing that? (Apart from me!)
It's beautiful!
Good girl! Excellent work, highly respected! 🤠
Woooow... Amazingly cool work, Jenny!❤👍 Very impressive, both the art and the algorithm.😉😁
Thank you for the idea 🙏and I completed one👍
Great Job!
That's actually amazing !
Amazing!!
Pretty Cool Jenny .
Omg This is amazing 😍😍🤩🤩
What a great video. This is very well done and is just fantastic. Thank you for sharing this with the world. Make a little Cnc adaptation and you could have a really cool machine that could spit these out in short order...you have a wonderful opertunity to make a fully automatic version... you need a small Cnc machine with a way to feed the thread...and tension it. Such a machine could make these in a short time from anyone's picture.... kids would love it as would lots of crafts people. You could do this on rectangular or other shaped canvas also..wonderful!
this is super cool
Really enjoyed this. Absolutely well done on the piece!
This is amazing!
amazing! well done!
just found this channel randomly and it's the best :)
Incredible, really impressive
I love your sense of humor! hehe
Awesome work
Vous êtes un véritable Génie !!!! Bravo!!!
Nice description of the algorithm!
I love your passion. I living at Taipei in Asia. This skill let's me connect with the China's Suzhou double-sided embroidery.
Use silk thread to operate points, lines and surfaces to compose the picture
Really good video, good jokes too! And I love the end result.
This is awesome!! :D great video
This is sick :o
That looks amazing. I wonder what it would look like if you created a border to hide the nails with LEDs hidden inside to create a backlight.
nice video. also, love your sense of humor 😂
Looks great! Was wondering if you were going to paint the board white to help with the contrast but I actually think the wood grain adds a nice bit of texture behind the threads! Also helps that your parents are ridiculously photogenic! (don't tell mine I said that)
Hehe they'll be happy to hear that :) I really like the more rustic look of the exposed wood (not that you can really see it), and it saves me a step as a bonus!
Amazing engineering!
HOLY THAT’S AMAZING JENNY 🔥🔥
Aha thank you Isaac! ❤️
09:30
I love that slight diss to heritage there 😂😂
Just found your channel by pure coincedence and just subscribed! 👌
Really cool project! Loved the walk through the whole process and the algorithm explanation :P (oh yeah came from reddit)
I'm so glad I found you through Nebula! Fantastic content, great humour, and PLANES! Can't wait to binge watch your entire channel next week after I finish my final uni project!
Yay! Welcome and good luck on your project 😊
@@JennyMaAviation Thank you so much!
Amazing!
FYI, you can make a pivot arm out of scrap wood and screw the sabre saw to it, so that you don't have to rely on your ability to follow a marked line. Sarch for "circle cutting jig", you'll find many examples.
Came here from Reddit, hope you keep going good luck. I like videos where people use computers to solve engineering problems.
SUBSCRIBERISED!
[impatiently clicks on channel before the intro is over, expecting more programming stuff]
Wait, it's all about aviation? ... AWESOME!
Beautiful ❤️
Thats really cool.
The result was really cool.
That’s awesome.
Really Amazing. *thumbs up
Great video!
Super cool
You deserve a raise.
Your ability to finish a project is what impresses me more than anything else. Sick project
Thank you! I was getting fed up at some points.... but luckily everything worked out in the end :)
Came here from Reddit too. Something in common, studied Aerodynamics and CFD for 20 years, not my current job though.
Meanwhile at your standard technical interview: write this algorithm.
Absolutely amazing Jenny! I work with String Art Techninique and i'm trying to learn this kinda technique skill. There's some app that get help this sequencies? Thanks a lot and congrats by this video and the piece of art
You woke up my coding interest that has been dormant for a while. Thank you! Btw, could you cover the Swedish aircraft, most notably JAS Gripen?
Came for the topic. Subscribed because of your video style. Thanks for the great walkthrough. How long did it take you to thread it?
How did you choose the way to go around the nail, as there are two options for each of them? Would it cause an error and decrease the resolution if the wrong path is chosen?
Wow. You are really talented as well as highly educated. Difficult for me to full appreciate the detail of what you designed/built/created (can you double forward slash like that?). I wonder what you can design in wire frame? VTOL, 300 passengers or 70t lift capacity and Mach 4 or greater. Well VTOL might be asking too much. Mach 4 or faster would be very cool. Well really hot, starting to create plasma? Does that mean either go really high or deal with the heat? Has to sound cool. Well it doesn’t but what’s going really really fast with out sounding really really cool. Electro magnetic afterburners (just made that up, I know nothing)
You never fail to amaze me!!
❤️❤️❤️
Cool project. Any ideas on how to turn this into an optimal algorithm, is it even possible? Also how did you intersect the line with the pixels, did you take into account overlap?
Does the algorithm take account the thickness of each nail (recognising that each has 2 entry and exit points)? Does it take into account the 3rd dimension (i.e. thread coming up higher as it becomes more dense)?
Wow!
I related to the part where your Dad becomes a clamp. Because I don’t have a Dad. Or a clamp. Great video! Very cool.
Did you make a sign error in your program?
Looks like the image is left-right flipped over.
compare 09:20 and 12:34
Reddit bought me here ! Awesome work :)
This is fantastic. Such a cool STEM-crafts project ! Thinking of making this myself ! How long did you spend on the threading itself?
Maybe I missed it in the video but how did you decide on the size of the canvas? I might try smaller to reduce effort, but it might turn out too vague.
Thank you 😊 I just took a tape measure and eyeballed how big I wanted it on my wall, nothing scientific 🤷🏻♀️ Smaller canvases will work just as well I think, but just keep in mind the thickness of the string relative to the width of the portrait, as mentioned in the vid :)
I love this so much. I do basic, standard string art and have wanted to do portraits this for a while so I’m searching and it led me here. But I’m an artist - how on earth do I learn how to make an algorithm is the simplest quickest way?!
Download thread art.
Is there one which uses colour?
@The String Art Guy hey hi, Im a student and u require this code for my project, if u have the algorithm, pls help me out.
Really doppe🔥
hello, what edits did you make for the picture and what codes did you use, could you share it thanks?
This is pretty awesome! Major props for the stamina to actually complete the physical product too.
Hopefully dust won't settle on it in weird ways...
Thats nice, would love to see you implement this with a cnc machine and make it automatic
very cool! :D
I'm so tempted to try this myself now. I don't understand why the photo got flipped horizontally though? It wouldn't really matter, and would be easy to just flip input image, but I'm still curious as to what flipped it?
Something in the algorithm
Maybe the nails were supposed to be ordered clockwise?
Eres brillante 🥺☺️
Is it possible to create it on square or rectangle instead of circle?
Plz tell me what is the name of the app you used to give you the serial numbers to draw????