![Logo](/xusenshi1102/UchicagoBrickFlyers/raw/main/images/logo.png)
By BrickFlyer @ University of Chicago
View Demo
·
View Presentation
3D Model Capture and LEGO Blueprint Generation Using Drones and Computer Vision is an innovative system that integrates autonomous drone navigation, computer vision, and 3D modeling to convert real-world objects into customizable LEGO blueprints. This project automates the complex process of object capture, segmentation, and 3D reconstruction to create a foundational LEGO model that users can modify and expand. Key features of the project include:
- Autonomous Object Detection and Segmentation: Utilizes YOLO8-world and SAM2 for real-time detection and segmentation of target objects captured by a Tello drone.
- 3D Model Reconstruction: Employs DUSt3R to convert multi-angle images into detailed 3D models.
- LEGO Blueprint Generation: Transforms the 3D model into a LEGO design plan with step-by-step instructions using BrickLink Studio.
The system is designed for accessibility, focusing on small, everyday objects found in classrooms, such as desks and chairs, making it ideal for educational, creative, and prototyping applications.
By bridging advanced technology with LEGO's simplicity, this project lowers barriers to complex LEGO design, fostering innovation and creativity across diverse domains.
Follow these steps to use the system and generate a LEGO blueprint for a suitcase or any object of your choice.
To ensure a smooth workflow, make sure the following prerequisites are met:
- Clone the repo
git clone https://github.com/xusenshi1102/UchicagoBrickFlyers.git
- Create virtual environment
conda create -n brickflyer python=3.11
conda activate brickflyer
- Install packages
pip install -r requirements.txt
cd external
git clone https://github.com/facebookresearch/sam2.git && cd sam2
pip install -e .
cd external
git clone --recursive https://github.com/naver/dust3r && cd dust3r
conda install pytorch torchvision pytorch-cuda=12.1 -c pytorch -c nvidia # use the correct version of cuda for your system
pip install -r requirements.txt
- Check Drone Ensure that your drone and computer are connected to the same network.
Ensure your drone faces toward the object
python3 main.py --target_object --drone_ip
For a detailed demonstration, you can watch the usage video on YouTube:
Watch the Video
Distributed under the MIT License. See LICENSE
for more information.