This project includes code that lets a user input an image and returns a pixelated version of the original, but with its pixels represented as LEGO bricks. The program also lets a user specify a LEGO base plate size and outputs the number of each color brick needed and the total cost of the bricks.
For more information please visit our web site.
- Input required is a ".png" file.
- User should see a "bricked" image and the number and cost of the LEGO bricks required to build the picture in real life.
Install the following python libraries:
Numpy
Type the following in your command window: sudo pip3 install numpy
PIL
Type the following in your command window: sudo pip3 install Pillow
matplotlib
Type the following in your command window: sudo apt-get install python-matplotlib
Open CV
For install follow the instructions at: http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html
Kivy Widgets
For install follow the instructions at: https://kivy.org/docs/installation/installation-linux.html (install stable for best results)
Kivy Garden
For install follow the instructions at: https://kivy.org/docs/api-kivy.garden.html
Steps:
- A black user interface will appear. Choose a size for your base plate and select "Your Files."
- Here you will choose a ".png" file and the program will run after you click "Select."
Authors: Ana Krishnan, Annie Kroo, Kerry McConnaughay, Anil Patel, Onur Talu