I made an AI LEGO® PixelArt Robot

172,397
0
Published 2024-06-08
This Lego machine can easily create a beautiful pixelart of anything you want!
It is programmed in Python, and, with help of OpenAI's DALL-E 3, it can make anything!
Simply type in a subject, and hit start!

Oh, and Dave wants to make something too :) .

--------------------------------------------------------------------------------------------------------
The code is available for Download on GitHub:
github.com/CreativeMindstorms/AI-LEGO-PixelArt-Rob…
--------------------------------------------------------------------------------------------------------

All Comments (21)
  • @JMPDev
    Having to refill the colors seems like the main downside of this. With how long it seems to take it would be nice if you could just set and forget and not keep checking on it. You could extend the color ‘hopper’, and modify it so you can see the height of each color stack with tick marks for every 10 plates. Then the program could print out the number of each color that is needed in the current design and you’d know up to what tick mark you need to fill each color at minimum to complete the ‘print’ without needing a refill. The program could also prompt the user for how many of each color they have and do two passes on the image: first for each pixel compute a ‘difference’ value for each available color, then in the second pass always first greedily assign colors to those remaining unplaced pixels with the lowest ‘difference’ to the colors, tracking the remaining colors you’d have and always assigning the next lowest ‘difference’ color that also is still available. This should result in the final design never using more of a color than what you have, while still looking as ‘close’ as possible to the desired image. A neat side effect of this is that you could effectively choose palettes - eg. If you only specifying counts for various black/grey/white plates then the final design it outputs would be completely greyscale. Same if you only input counts for blue tones. You could also include dithering as a means to better approximate colors and better handle not having enough of a color.
  • @johnmarcgreen
    I'm literally thunderstruck by the multiple layers, scales and magnitudes of awesome creative work of Lego engineering, coding, video production and editing, writing and presentation. This video should have many many more views. Brilliant work, sir!
  • @puzzLEGO
    Not only does your LEGO skill keep improving, your video making has also become really good! This video will do well 😉
  • As soon as I saw this in my notifications, I also thought of the Bricasso. Glad you took it to the next level!
  • @hjewkes
    If you wanted to speed it up, you could have the pick and place be able to grab more tiles at a time and have each stack be able to dispense tiles onto a belt. Then the dispensers could queue up the next strip of tiles while the gantry is placing it, and you reduce the number of gantry trips
  • @jdlbrickfilms
    This video is so incredibly high quality, both in terms of content and design. Well done!
  • @nagakarthick1755
    Wonderful and inspiring. Will show this to my 10 year old. With young guns like you, there is still hope in this world. Godspeed to you.
  • @MrBmxJO
    Very impressing! Your dedication and humourous joy are really a pleasure to watch. Kepp doing what you like!
  • @SteveSatori
    Through the whole era of 32-bit Windows, the icons came in 32x32 pixel flavor. It would be fun to see some classic icons getting revived in LEGO. Winamp anyone?
  • I love your videos! They're always so helpful and informative.
  • @agepbiz
    This is impressive! I love it
  • Thats awesome. Also you should use a raspberry pi running an ai locally for dave, so you can bring him anywhere.
  • @stumcconnel
    This might just be the most impressive thing I've ever seen done with Lego, great job!
  • @someonek11
    How does this video not have a million views already? Your ingenuity, simply amazing!
  • 9:45 That's just awesome detail, I really love that :) I can't wait for your next video, Dave will definitely like it! Really nice project as always!!
  • *the WONDERFUL world of NOT PLANNING AHEAD and just IMPROVISING” so relatable 😭
  • I really like the build, considering that it may be pretty hard to make pixel art out of lego. I also like how you tease dave getting new features.