Git Product home page Git Product logo

selfdrivingdrone's Introduction

SelfDrivingDrone

SelfDrivingDrone is an AI software system that implements state-of-the-art object detection algorithms, including Faster R-CNN and SSDlite, to fly a drone through an obstacle course. It is written in Python and powered by the djitellopy and simple-pid libraries.

Example of SelfDrivingDrone execution. Watch the complete video here.

Introduction

The goal of SelfDrivingDrone is to provide a high-quality, high-performance code for all those who want to fly their Tello drones through any obstacle course.

SelfDrivingDrone exploits fine-tuned implementations of the following object detection algorithms:

  • Faster R-CNN: Slow, but extremely precise.
  • SSDlite: Fast, but less precise than Faster R-CNN. Best option for users lacking a dedicated graphics card.
  • Haar Cascade Classifier: Fast, but less precise than SSDlite.


Installation

Requirements:

  • Python3, Dji Tello drone

An example of a Dji Tello drone.


Clone the SelfDrivingDrone repository:

# SELF_DRIVING_DRONE=/path/to/clone/SelfDrivingDrone
git clone https://github.com/gabrimatx/SelfDrivingDrone $SELF_DRIVING_DRONE

Install Python dependencies:

pip install -r $SELF_DRIVING_DRONE/requirements.txt


Quick Start: Using SelfDrivingDrone

During installation, you will be provided with 3 pre-trained models designed for Object Recognition on the obstacle depicted below. Additionally, you will receive a way to run them automatically through the main.py file.

Obstacle example.

Please, note that any obstacles of similar shape will be suitable to be recognized by our models, but the color of the paper may have a small impact on the results.


How to run the project:

Choose one of the following lines based on the model of your choice:

# SELF_DRIVING_DRONE=/path/to/clone/SelfDrivingDrone
python main.py cascade 
python main.py ssdlite 
python main.py faster-rcnn 
$SELF_DRIVING_DRONE
  • If no parameter is passed through the command line to the main.py file, the default executed model will be the SSDlite model.

  • the default executed model can be changed at will in the main.py file, simply by changing the value of the default_model variable among Cascade, SSDlite and faster-RCNN. (the assignments are case insensitive)


Visualization

As a finishing touch, 2 real time windows are initiated, each operating on the same dedicated thread. These windows serve the purpose of visualizing the following:

  1. The live video feed captured by the drone, with bounding boxes drawn around any obstacles present in the scene.
  2. A graphical representation, comprised of 3 matplotlib.subplots, that illustrates the difference between each input variable and its corresponding setpoint over time.


Authors

We're a group of three hard-working university students at Sapienza University of Rome. SelfDrivingDrone is a project that we have undertaken as part of our academic curriculum, specifically designed to fulfill the requirements of one of our examinations - AI Lab: Computer Vision and NLP.

The entire process has been nothing short of stimulating and fulfilling, and we sincerely hope that our passion and dedication shine through in the final outcome. For any clarifications or further information regarding the project, please feel free to reach out to us.



License

SelfDrivingDrone is released under the MIT License.

selfdrivingdrone's People

Contributors

rubenciranni avatar gabrimatx avatar luigi-pizza avatar

Stargazers

Kilian Schulz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.