改造成穿越机, youtube: https://www.youtube.com/watch?v=EugsZKwPnWg
https://github.com/dji-sdk/Tello-Python
官方Demo
readme
This is a collection of python-based sample code that interact with the Ryze Tello drone.
This toolkit contains three sample programs based on tello sdk and python2.7,
including
Single_Tello_Test,
Tello_Video,
and Tello_Video (With_Pose_Recognition).
There is also a program file named tello_state.py.
In Single_Tello_Test,You can design a series of command combinations by writing a txt script
to let tello execute a series of actions you have designed.
This program can also be used as a command set test tool for tello.
写TXT一系列指令让飞机执行动作,即是指令测试工具
In Tello_Video,You can receive the video stream data from tello,
decode the video through the h264 decoding library,
and display it on a GUI interface based on Tkinter and PIL.
In addition, it also supports a control panel that can operate tello.
支持一个控制面板能操作飞机
This sample code provides an example of receiving and processing and getting the correct video data.
示例代码能提供示范:收集处理和得到正确的视频数据。
The source code of the h264 decoding library is also provided in the package, which can be used for your reference.
h264 decoding解码库在包里。
Tello_Video_With_Pose_Recognition is an application version modified from Tello_Video.
It uses the decoded video data,and everytime extract a single frame image for pose recognition operation ,
每次提取一个单帧图片用于姿势识别。
and binds the specific posture and aircraft control commands to realize the pose control of Tello.
结合特殊姿势和飞机控制指令来实现飞机姿势控制。
This code is mainly used as an application case for utilizing the decoded video data of tello for image processing.
这个代码主要备用来作为应用案例:使用飞机的视频解码数据来做图像处理。
Tello_state.py can read the various status data of tello, and can be used as a tool to debug and view the status of tello.
读到飞机的不同状态数据,用于debug工具和看飞机状态。
The sample codes above are based on python2.7.
There is no need to install additional third-party libraries for running Single_Tello_Test and tello_state.py.
For Tello_Video and Tello_Video (With_Pose_Recognition), you need to install a series of third-party libraries.
Therefore, in these two folders, a one-click installation script (based on windows32/64, linux and macos) is provided, which can facilitate you with installing all relevant dependencies.
Specific to the content and description of each package, you can refer to the readme file in the related folder.
至于每个包的具体内容和描述可以参考其中的 读我
If you have any questions about this sample code and the installation, please feel free to contact me. You can communicate with me by sending e-mail to [email protected].