scepter914 / TelloFollowingPerson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TelloFollowingPerson

TelloFollowingPerson is application of drone following person. This is a sample code of conection between TelloPy and detection algorthm sample of ChainerCV.

!! Caution !!

  • It is dangerous for a drone to fly automatically
  • You can use this code at your own risk
    • Because of individual difference of drones, these codes always don't work well.
    • When your drone fly, you should check if anyone wasn't around the drone.

OS and library version

Installation


# General dependencies
sudo apt-get install -y python-dev pkg-config 

# Library components
sudo apt-get install -y libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev

sudo pip3 install tellopy av opencv-python image chainer chainercv

Docs

Algorithm

  1. Initialize: the drone take off
  2. loop
    1. The drone get a image and send hostPC
    2. Detection task at hostPC and get position of person in the image
    3. Control the actuation of the drone

Control

  • ↑ ↓ → ← : control drone as object move center
  • Forward and Backward: Use size of bounding box
    • bigger than a threshold : Backward
    • smaller than a threshold : Forward

About


Languages

Language:Python 100.0%