Git Product home page Git Product logo

uav-gesture-control_python's Introduction

2018/12/20 Update

The EDU version of Tello has been released. The new function of Tello EDU is AP command. We can send this command to Tello to transfter the it as a station

AP YourWiFiName YourWiFiPW

Then you can log in your router to see the corresponding IP address of UAVs. My UAVs' IPs are '192.168.1.239' and '192.168.1.163'. Then We can send the command message to Tello. A demo for taking off is shown here. The code is here

UAV-Gesture-Control

This project is made by Chinese Univeristy of Hong Kong, Shenzhen(CUHKSZ) and Stanford.

The goal is to control the UAV Tello by hand gesture or body pose.

Simple Control

You can use the files in Simple-Control. The message is sent as string to Tello and the response will feed back to PC. The new SDK is available now. I am not sure if all the commands can still work. You can easily modify the corresponding command if anything different in new SDK.

Tellopy Control

The Tellopy can be installed by pip. But When I intall 'av' by pip, the error occured and I can't fix it. The easy method to solve is to use Anaconda by running

$conda install av -c conda-forge

The interesting thing is that 'av' can be easily installed without error when I use Python 2.7.12 by running

$pip install av

Openpose

Please follow the Installation Manual to install Openpose. Ubuntu version is recommended. All of codes are only checked in Ubuntu 16.04 system. Please make sure all of the required packages have been installed. It will cost almost 30 minutes.

If you have error like 'CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1915 (message)' when running Cmake GUI, please run the following code

$cd 3rdparty
$git clone https://github.com/CMU-Perceptual-Computing-Lab/caffe.git

Now, run CMake GUI to Configure and Generate.

Check OpenPose was properly installed by running it on the default images, video, or webcam: Quick Start.

Pose Detection by the Camera of Tello

The python codes are updated and can be run directly if you connect your Tello with PC. Please copy the files '/python_tutorial' to your computer path 'openpose/build/examples/python_tutorial'

The following video is the result of video_effect.py.

Use kNN to classify the pose

The training data sets are collected by 'mat' file. All codes and data sets are here

Speech control

I try to use Xun Fei Yun to realize the off-line speech control. However, it only provides C++ API and it's not easy for me to transfer as Python version.

Speech_Recognition package is a strong tool for speech recognition. However, there are so many bugs when I try to install it on Ubuntu 16.04. I firstly use PC and error told me that microphone can't be found. I used a USB microphone. It can't be recognize by Pyaudio. After a long-time struggle, I decide to use notebook with microphone.

After installing Pyaudio and Speech_Recognition, there are still bugs. For example, missing PocketSphinx module: ensure that PocketSphinx is set up correctly can be solved by here

sudo pip install --upgrade pocketsphinx

I thought Anaconda will result some problems. If you can't solve your problems, try to de-active the anaconda.

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.