Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

KivyTello: a Kivy app to control your Ryze Tello

mcecchi

Active member
Joined
Apr 22, 2018
Messages
25
Reaction score
10
I wrote a very simple python app to drive your Ryze Tello from desktop or smartphone.
It uses Kivy (Kivy: Cross-platform Python Framework for NUI) to create a basic platform independent GUI.
I still haven't tried KivyTello on Android due to lack of time.
I used the great Tello library from hanyazou/TelloPy This library works well despite the Kivy event loop dislikes many multithreaded python libraries.
Sorry, no video capture for now...

mcecchi/KivyTello
 
Last edited:
  • Like
Reactions: jjs357

mcecchi

Active member
Joined
Apr 22, 2018
Messages
25
Reaction score
10
Important update

KiviTello finally works on Android!

I used Kivy Launcher for the first test (https://play.google.com/store/apps/details?id=org.kivy.pygame&hl=en).

Once the Kivy launcher is installed, you can put KivyTello
folder in the Kivy directory in your external storage directory
(often available at /sdcard even in devices where this memory
is internal), e.g. :

/sdcard/kivy/KiviTello

KivyTello waits 60 seconds before exiting if you don't connect Tello in the meantime.

KiviTello can be packaged for Android (see Create a package for Android — Kivy 1.10.1.dev0 documentation) and I'll do it as soon as possible.
 
  • Like
Reactions: Inakigarm

adr94

Member
Joined
May 17, 2018
Messages
12
Reaction score
2
Hello,

Thanks for the work but it won't work with my mac, I get this :

Tello/KivyTello-master/main.py", line 43

print 'take off'

^

SyntaxError: Missing parentheses in call to 'print'
 

FlandersNed

Active member
Joined
May 30, 2018
Messages
27
Reaction score
4
Hello,

Thanks for the work but it won't work with my mac, I get this :

Tello/KivyTello-master/main.py", line 43

print 'take off'

^

SyntaxError: Missing parentheses in call to 'print'
It looks like you're using Python3 to run that.

If you are, make sure that print uses parentheses - aka print ('take off') - or run it in Python2, which I think is how it is supposed to be run.
 

mcecchi

Active member
Joined
Apr 22, 2018
Messages
25
Reaction score
10
Hello,

Thanks for the work but it won't work with my mac, I get this :

Tello/KivyTello-master/main.py", line 43

print 'take off'

^

SyntaxError: Missing parentheses in call to 'print'
Hi Adr,
I pushed now Added python3 compatibility · mcecchi/[email protected]
Corrected main.py for python 3 compatibility (using 2to3 -f all).
I cant't say anything about tellopy library, you must check about hanyazou/TelloPy
I'm working on video stream, suggestions and pull requests are welcome!
 
  • Like
Reactions: adr94

mcecchi

Active member
Joined
Apr 22, 2018
Messages
25
Reaction score
10
July 23, 2018 - Major update on branch videofeed
  • Added video (using Kivy Video widget and Flask internal streaming server)
  • Added simple face detection
  • Using video in cover mode (background)
  • Semi-transparent widgets
Very early stages, suggestions and pull requests are welcome!

Note: this version of KiviTello requires opencv and av. This can be tricky on some platforms. On Windows, you can install prerequisites with

pip install opencv-python
pip install opencv-contrib-python
pip install av

Then install FFmpeg from shared and dev packages and unpack them somewhere (like C:\ffmpeg), then use set_env.cmd in repo to set environment variables according. Now you can run KivyTello from branch videofeed on your desktop.

Sample screenshots:

shot01.png

shot02.png
 
  • Like
Reactions: JoeBaldy

JoeBaldy

Active member
Joined
Apr 28, 2018
Messages
41
Reaction score
9
Hi,

... when I give pip install av, I get the following:

....
running build_ext
running reflect
running config
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools":
http://landinghub.visualstudio.com/visual-cpp-build-tools
looking for avformat_open_input...

----------------------------------------
Command ""d:\program files (x86)\python36-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Giuseppe\\AppData\\Local\\Temp\\pip-install-99ustr3c\\av\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Giuseppe\AppData\Local\Temp\pip-record-323wcc0n\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Giuseppe\AppData\Local\Temp\pip-install-99ustr3c\av\

... and then:

C:\Users\Giuseppe\Desktop\KivyTello-videofeed>python main.py
Traceback (most recent call last):
File "main.py", line 3, in <module>
import av
ModuleNotFoundError: No module named 'av'

... why ? Thanks in advance

AD MAIORA

P.S. Microsoft Visual C++ Build Tools is installed ... :(:(:(
 
Last edited:
  • Like
Reactions: champ

JoeBaldy

Active member
Joined
Apr 28, 2018
Messages
41
Reaction score
9
Have you the latest version of pip?
... yes ... :(

Python v. 3.7.0 x64
Pip v. 18.0
...
pip install opencv-python -> OK
pip install opencv-contrib-python -> OK
pip install av -> KO
...

AD MAIORA
 
Last edited:

mcecchi

Active member
Joined
Apr 22, 2018
Messages
25
Reaction score
10
On my pc it works like a charm...
Look here:
C:\Users\mauro>pip uninstall av
Uninstalling av-0.4.1:
Would remove:
c:\python27\lib\site-packages\av-0.4.1.dist-info\*
c:\python27\lib\site-packages\av\*
c:\python27\scripts\pyav.exe
Proceed (y/n)? y
Successfully uninstalled av-0.4.1

C:\Users\mauro>
C:\Users\mauro>
C:\Users\mauro>
C:\Users\mauro>
C:\Users\mauro>pip install av
Collecting av
Installing collected packages: av
Successfully installed av-0.4.1

C:\Users\mauro>
... yes ... :(

Python v. 3.7.0 x64
Pip v. 18.0
...
pip install opencv-python -> OK
pip install opencv-contrib-python -> OK
pip install av -> KO
...

AD MAIORA
Have you correctly installed ffmpeg?
 

JoeBaldy

Active member
Joined
Apr 28, 2018
Messages
41
Reaction score
9
On my pc it works like a charm...
Look here:
C:\Users\mauro>pip uninstall av
Uninstalling av-0.4.1:
Would remove:
c:\python27\lib\site-packages\av-0.4.1.dist-info\*
c:\python27\lib\site-packages\av\*
c:\python27\scripts\pyav.exe
Proceed (y/n)? y
Successfully uninstalled av-0.4.1

C:\Users\mauro>
C:\Users\mauro>
C:\Users\mauro>
C:\Users\mauro>
C:\Users\mauro>pip install av
Collecting av
Installing collected packages: av
Successfully installed av-0.4.1

C:\Users\mauro>

Have you correctly installed ffmpeg?
... the latest shared & dev packages ... Maybe the path of ffmpeg (C:\ffmpeg\bin is in it ...) ???
 

JoeBaldy

Active member
Joined
Apr 28, 2018
Messages
41
Reaction score
9
Have you tried to use set_env.cmd making appropriate modifications?
... mi "pare di capire" che parliamo la stessa lingua, isn't it ??? ;) ;) ;)
... senti, io sto uscendo letteralmente pazzo ... sto cercando in tutti i modi di installare av (e, dopo 36 anni di onorato servizio programmatorio, non mi sento tanto "sprovveduto" ...)
... dalle segnalazioni di errore vien fuori che qualcosa sicuramente gli "manca"':

..............
running config
looking for avformat_open_input... missing
looking for pyav_function_should_not_exist... missing
looking for av_calloc... missing
looking for av_frame_get_best_effort_timestamp... missing
looking for avformat_alloc_output_context2... missing
looking for avformat_close_input... missing
looking for avcodec_send_packet... missing
looking for AV_OPT_TYPE_INT...missing
looking for PYAV_ENUM_SHOULD_NOT_EXIST...missing
looking for AV_OPT_TYPE_BOOL...missing
looking for AVStream.index... missing
looking for PyAV.struct_should_not_exist... missing
looking for AVFrame.mb_type... missing

We didn't find `AV_OPT_TYPE_INT` in the libraries.
We look for it only as a sanity check to make sure the build
process is working as expected. It is not, so we must abort.

... ma non ho idea di cosa ... set INCLUDE, LIB e PATH puntano giusto ... bho

AD MAIORA
 

mcecchi

Active member
Joined
Apr 22, 2018
Messages
25
Reaction score
10
Ok, ho rifatto tutto su un PC nuovo di zecca.

Probabilmente ecco cosa manca:

devi copiare i files inttypes.h e stdint.h in

C:\Users\<Nome utente>\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include

I files li puoi prendere qui

Fammi sapere!
 
  • Like
Reactions: JoeBaldy

mcecchi

Active member
Joined
Apr 22, 2018
Messages
25
Reaction score
10
If you have any trouble installing PyAV, please do the following:

copy files inttypes.h and stdint.h in

C:\Users\<User name>\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include

You can download them here

Good luck!
 

New Threads

Members online

Forum statistics

Threads
3,043
Messages
23,824
Members
7,613
Latest member
Szczurko