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! :)
  • Наука та технологія

КОМЕНТАРІ • 274

  • @jumperdude1
    @jumperdude1 3 роки тому +72

    Jenny: yeah the process was pretty complicated.
    *Goes to stack overflow like a boss*

  • @ameyakshirsagar4941
    @ameyakshirsagar4941 3 роки тому +138

    Came here from Reddit. It's really beautiful. Keep it up.

  • @hkr667
    @hkr667 3 роки тому +76

    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.

    • @JennyMaAviation
      @JennyMaAviation  3 роки тому +9

      Hehe yes! At multiple times during the research phase I considered abandoning the idea altogether 😋

    • @gustavofernandez2537
      @gustavofernandez2537 Рік тому

      @@JennyMaAviation Hi Jennyma, do you sell the algorithm?

  • @automaetopia
    @automaetopia 3 роки тому +16

    That’s insanely beautiful.

  • @muhammedabdulkarim1536
    @muhammedabdulkarim1536 3 роки тому +16

    I came from Reddit too. And this is sooo amazing!

  • @amenicHD
    @amenicHD 3 роки тому +4

    Wow! Best thing about it you were absolutely willing to follow through, no matter what come, true inspiration.

  • @zhihenglou
    @zhihenglou 2 роки тому

    This is awesome, huge respect for pulling through with this idea!

  • @gbrls_yt
    @gbrls_yt 3 роки тому +3

    The end result was amazing! I'd love to see more computery videos like this.

  • @dailyschun
    @dailyschun 3 роки тому +4

    HOLY COW! THIS IS INCREDIBLE😍😍

  • @eylonlevy6234
    @eylonlevy6234 3 роки тому +2

    A simple yet effective algorithm, and a really cool project. Looks great!

  • @saathvikparupudi321
    @saathvikparupudi321 3 роки тому +4

    That looks beautiful!

  • @ThePyraete
    @ThePyraete 3 роки тому +5

    I think you nailed it

  • @christophemarois5423
    @christophemarois5423 3 роки тому +1

    I just LOVE this kind of coding adventure. Superb result also.

  • @julieball1167
    @julieball1167 8 місяців тому

    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

  • @gclinster
    @gclinster 3 роки тому +1

    This was really awesome. Thanks for posting!

  • @senas5213
    @senas5213 3 роки тому

    I loveddd thisss!! You're so talented Jenny, please upload more projects like this!!

  • @ivo35
    @ivo35 3 роки тому +1

    amazing work, really inspiring, well done Jenny!!

  • @PNM_79
    @PNM_79 3 роки тому +1

    This is awesome Jenny!

  • @dishwasher9851
    @dishwasher9851 3 роки тому +1

    This is such a beautiful piece and a fascinating process

  • @MichaelBerthelsen
    @MichaelBerthelsen 3 роки тому

    Oh, and LOVING your gorgeous dining room table. Beautiful patterning in the veneer.😉👍

  • @carlosknowlton
    @carlosknowlton 3 роки тому

    I'm super impressed with the effort you put into this! Saw this on Reddit, and I'm now a fan!

  • @813Productions
    @813Productions 3 роки тому +2

    That's incredible

  • @HarrySummerXR
    @HarrySummerXR 3 роки тому +2

    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.

  • @qc_ploum-zoum2
    @qc_ploum-zoum2 3 роки тому +30

    I would have liked a little overview of the code, maybe in the next video! If you ever do an other one involving code.

    • @phendur
      @phendur 3 роки тому +1

      seconding this!

    • @art.villa_
      @art.villa_ 2 роки тому

      Me as well.

    • @suckmydick2006
      @suckmydick2006 Рік тому

      @Rashard Kenn Castro don’t say give, ppl need to buy from you.this is a business not giving

    • @angelbellarose8628
      @angelbellarose8628 Рік тому

      Is there one with colour in it?

  • @chuang4254
    @chuang4254 3 роки тому

    Great work. Looks awesome!

  • @NiranshaDHutch
    @NiranshaDHutch Рік тому

    Thank you so much for the code, this is so much to learn, mindblowing :)

  • @7jack7
    @7jack7 Рік тому

    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!

  • @MichaelCampbell01
    @MichaelCampbell01 3 роки тому +5

    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.

  • @shrubmans
    @shrubmans 3 роки тому

    Great work & smart idea!

  • @oxcart4172
    @oxcart4172 3 роки тому +1

    Who hasn't thought of doing that? (Apart from me!)
    It's beautiful!

  • @artandmusic4495
    @artandmusic4495 2 роки тому +1

    Good girl! Excellent work, highly respected! 🤠

  • @MichaelBerthelsen
    @MichaelBerthelsen 3 роки тому

    Woooow... Amazingly cool work, Jenny!❤👍 Very impressive, both the art and the algorithm.😉😁

  • @minnalthevlogger5849
    @minnalthevlogger5849 3 роки тому

    Thank you for the idea 🙏and I completed one👍

  • @JonathasGroetares
    @JonathasGroetares 3 роки тому +1

    Great Job!

  • @kaleidojess
    @kaleidojess Рік тому

    That's actually amazing !

  • @EnglishRain
    @EnglishRain 3 роки тому +1

    Amazing!!

  • @EdD-ym6le
    @EdD-ym6le 3 роки тому +2

    Pretty Cool Jenny .

  • @madilee3873
    @madilee3873 3 роки тому +1

    Omg This is amazing 😍😍🤩🤩

  • @walts9364
    @walts9364 3 роки тому +2

    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!

  • @MoDFoX
    @MoDFoX 3 роки тому +1

    this is super cool

  • @jeelybeenz
    @jeelybeenz 3 роки тому +13

    Really enjoyed this. Absolutely well done on the piece!

  • @AndreioxMacedo
    @AndreioxMacedo 3 роки тому

    This is amazing!

  • @TheFunBox
    @TheFunBox 3 роки тому

    amazing! well done!

  • @ansichtssachen
    @ansichtssachen 10 місяців тому

    just found this channel randomly and it's the best :)

  • @daegudiva
    @daegudiva 2 роки тому

    Incredible, really impressive

  • @ChuChuTrain
    @ChuChuTrain 3 роки тому +1

    I love your sense of humor! hehe

  • @Astus314
    @Astus314 3 роки тому

    Awesome work

  • @angeliquelamri282
    @angeliquelamri282 2 роки тому

    Vous êtes un véritable Génie !!!! Bravo!!!

  • @MFunkibut
    @MFunkibut 10 місяців тому

    Nice description of the algorithm!

  • @What_we
    @What_we 4 місяці тому

    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

  • @hvdveer
    @hvdveer 3 роки тому +1

    Really good video, good jokes too! And I love the end result.

  • @menoking11
    @menoking11 3 роки тому

    This is awesome!! :D great video

  • @Geosquare8128
    @Geosquare8128 3 роки тому +22

    This is sick :o

  • @jamesallen438
    @jamesallen438 3 роки тому +3

    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.

  • @marcjosephcole1208
    @marcjosephcole1208 3 роки тому +2

    nice video. also, love your sense of humor 😂

  • @iexusuxei
    @iexusuxei 3 роки тому +13

    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)

    • @JennyMaAviation
      @JennyMaAviation  3 роки тому +3

      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!

  • @kavorka8855
    @kavorka8855 3 роки тому

    Amazing engineering!

  • @isaacsy7075
    @isaacsy7075 3 роки тому

    HOLY THAT’S AMAZING JENNY 🔥🔥

  • @benjamingiesche5354
    @benjamingiesche5354 5 місяців тому

    09:30
    I love that slight diss to heritage there 😂😂
    Just found your channel by pure coincedence and just subscribed! 👌

  • @RedstoneTek
    @RedstoneTek 3 роки тому +1

    Really cool project! Loved the walk through the whole process and the algorithm explanation :P (oh yeah came from reddit)

  • @jedrzejw.9819
    @jedrzejw.9819 3 роки тому

    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!

    • @JennyMaAviation
      @JennyMaAviation  3 роки тому +1

      Yay! Welcome and good luck on your project 😊

    • @jedrzejw.9819
      @jedrzejw.9819 3 роки тому

      @@JennyMaAviation Thank you so much!

  • @edwinmendivilbarcelo3417
    @edwinmendivilbarcelo3417 2 роки тому

    Amazing!

  • @NSResponder
    @NSResponder 10 місяців тому

    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.

  • @haydennelson9404
    @haydennelson9404 3 роки тому +2

    Came here from Reddit, hope you keep going good luck. I like videos where people use computers to solve engineering problems.

  • @JamNightingale
    @JamNightingale 3 роки тому +2

    SUBSCRIBERISED!

  • @JobvanderZwan
    @JobvanderZwan 3 роки тому

    [impatiently clicks on channel before the intro is over, expecting more programming stuff]
    Wait, it's all about aviation? ... AWESOME!

  • @creativegirl1007
    @creativegirl1007 2 роки тому

    Beautiful ❤️

  • @KJ7JHN
    @KJ7JHN 9 місяців тому

    Thats really cool.

  • @per-axelskogsberg3861
    @per-axelskogsberg3861 10 місяців тому

    The result was really cool.

  • @RPBiohazard
    @RPBiohazard 3 роки тому

    That’s awesome.

  • @TheMason76
    @TheMason76 10 місяців тому

    Really Amazing. *thumbs up

  • @tobn634
    @tobn634 3 роки тому

    Great video!

  • @nakulkumar8912
    @nakulkumar8912 2 роки тому

    Super cool

  • @jessewilliams102
    @jessewilliams102 10 місяців тому

    You deserve a raise.

  • @penguin1714
    @penguin1714 3 роки тому +5

    Your ability to finish a project is what impresses me more than anything else. Sick project

    • @JennyMaAviation
      @JennyMaAviation  3 роки тому

      Thank you! I was getting fed up at some points.... but luckily everything worked out in the end :)

  • @smart7868
    @smart7868 3 роки тому +1

    Came here from Reddit too. Something in common, studied Aerodynamics and CFD for 20 years, not my current job though.

  • @Xaxxus
    @Xaxxus 3 роки тому +2

    Meanwhile at your standard technical interview: write this algorithm.

  • @pregandoarts3251
    @pregandoarts3251 2 роки тому

    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

  • @parmarcusriveraoman9094
    @parmarcusriveraoman9094 3 роки тому +1

    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?

  • @digitaltamer
    @digitaltamer 2 роки тому

    Came for the topic. Subscribed because of your video style. Thanks for the great walkthrough. How long did it take you to thread it?

  • @egeyuceel6809
    @egeyuceel6809 2 роки тому

    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?

  • @boldandthebeautifulgimbal2881
    @boldandthebeautifulgimbal2881 3 роки тому +1

    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)

  • @sydneyyoung18
    @sydneyyoung18 3 роки тому +5

    You never fail to amaze me!!

  • @dennisrkb
    @dennisrkb 3 роки тому

    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?

  • @edb8139
    @edb8139 Рік тому +1

    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)?

  • @extensivemoney6797
    @extensivemoney6797 3 роки тому

    Wow!

  • @OnlyGoodJawn
    @OnlyGoodJawn 2 роки тому +1

    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.

  • @olafzijnbuis
    @olafzijnbuis 10 місяців тому +1

    Did you make a sign error in your program?
    Looks like the image is left-right flipped over.
    compare 09:20 and 12:34

  • @tanveeransari2522
    @tanveeransari2522 3 роки тому +1

    Reddit bought me here ! Awesome work :)

  • @jokedurnez4167
    @jokedurnez4167 3 роки тому +1

    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.

    • @JennyMaAviation
      @JennyMaAviation  3 роки тому +2

      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 :)

  • @charlipocock8610
    @charlipocock8610 Рік тому

    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?!

    • @ernmatthew9638
      @ernmatthew9638 Рік тому

      Download thread art.

    • @angelbellarose8628
      @angelbellarose8628 Рік тому

      Is there one which uses colour?

    • @gunavardhan6236
      @gunavardhan6236 Рік тому

      @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.

  • @belarnnymoises5911
    @belarnnymoises5911 3 роки тому

    Really doppe🔥

  • @emresen3417
    @emresen3417 2 роки тому

    hello, what edits did you make for the picture and what codes did you use, could you share it thanks?

  • @rpavlik1
    @rpavlik1 3 роки тому +2

    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...

  • @figueiredoikeda
    @figueiredoikeda 3 роки тому

    Thats nice, would love to see you implement this with a cnc machine and make it automatic

  • @deno3415
    @deno3415 3 роки тому

    very cool! :D

  • @olekaarvaag9405
    @olekaarvaag9405 3 роки тому +4

    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?

    • @prcvl
      @prcvl 3 роки тому

      Something in the algorithm

    • @makr2092
      @makr2092 3 роки тому +6

      Maybe the nails were supposed to be ordered clockwise?

  • @jasmanc5907
    @jasmanc5907 3 роки тому

    Eres brillante 🥺☺️

  • @kze7en
    @kze7en Рік тому

    Is it possible to create it on square or rectangle instead of circle?

  • @suzana_string_art8751
    @suzana_string_art8751 2 роки тому

    Plz tell me what is the name of the app you used to give you the serial numbers to draw????