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

DJITelloPy: A new python wrapper for Tello

Droner

Member
Joined
Oct 25, 2018
Messages
10
Reaction score
0
Hi,
Great job!

Can your library support shooting stills images and receiving them?

Thanks!
 

rojo-amigo

Member
Joined
Nov 16, 2018
Messages
7
Reaction score
3
Location
Canada
The EDU sdk is at
https://dl-cdn.ryzerobotics.com/downloads/Tello/Tello SDK 2.0 User Guide.pdf
The new commands are:
stop (hovers in air)
ap ssid pass
read commands
-sdk?
-sn?
mission pad commands:
- mon
- moff
- mdirection x
- go x y z speed mid
- curve x1 y1 z1 x2 y2 z2 speed mid
- jump x y z speed yaw mid1 mid2

the read commands that have been removed? are
height?
temp?
attitude?
baro?
acceleration?
tof?
 
Joined
Nov 19, 2018
Messages
10
Reaction score
12
Hi,
Great job!

Can your library support shooting stills images and receiving them?

Thanks!
Hey Droner. The official SDK does not provide a way to retrieve photos. It only allow us to retrieve photos. But you could retrieve the video stream (which is implemented and tested in the library) and extract frames from there. Then you use the frames as single images.
 

nahuel

Well-known member
Joined
Dec 4, 2018
Messages
63
Reaction score
36
This is awesome! Tello and its users impress me more every day. Good job man.

I *so* want to test this but I have a weird problem. My computer won't connect to Tello's wifi (Arch Linux using NetworkManager). Doesn't give me a reason, it just tries for a few seconds then it says it failed :/
 

nahuel

Well-known member
Joined
Dec 4, 2018
Messages
63
Reaction score
36
Ok, this is so epic. Thank you so much for this, I'm gonna have a lot of fun. It works super well. I can hook this up to OpenCV or something... awesome!

Screenshot from 2018-12-08 21-20-48.png
 
  • Like
Reactions: Damià Fuentes
Joined
Nov 19, 2018
Messages
10
Reaction score
12
Ok, this is so epic. Thank you so much for this, I'm gonna have a lot of fun. It works super well. I can hook this up to OpenCV or something... awesome!

View attachment 2215
You are very welcome Nahuel! I actually did an Augmented Reality project for the university using OpenCV, markers and the DJI Tello. That is why I developed this library.
 
  • Like
Reactions: nahuel and johnagr
Joined
Nov 19, 2018
Messages
10
Reaction score
12
Do you have anything we can see? That sounds awesome.

I wrote the attached paper for the project. If you are interested in openCV, Augmented Reality or something similar I highly recommend you go through the following book: OpenCV: Computer Vision Projects with Python.
 

Attachments

  • Project 3 - Augmented reality over the live video of a drone - Damia Fuentes.pdf
    1.8 MB · Views: 174
  • Like
Reactions: Cyke and nahuel

nahuel

Well-known member
Joined
Dec 4, 2018
Messages
63
Reaction score
36
I wrote the attached paper for the project. If you are interested in openCV, Augmented Reality or something similar I highly recommend you go through the following book: OpenCV: Computer Vision Projects with Python.
Thanks a lot! :D
 

Paulie

New member
Joined
Jan 1, 2019
Messages
4
Reaction score
0
I wrote the attached paper for the project. If you are interested in openCV, Augmented Reality or something similar I highly recommend you go through the following book: OpenCV: Computer Vision Projects with Python.

After reading through your paper, I was wondering if you could further explain part 4. I've been using openCV to perform certain tasks with images and video feeds taken from my webcam using:
Python:
import cv2
cap = cv2.VideoCapture(0)

So I'm curious how to replace the VideoCapture(0) with the input of the drone camera.
 

nahuel

Well-known member
Joined
Dec 4, 2018
Messages
63
Reaction score
36
After reading through your paper, I was wondering if you could further explain part 4. I've been using openCV to perform certain tasks with images and video feeds taken from my webcam using:
Python:
import cv2
cap = cv2.VideoCapture(0)

So I'm curious how to replace the VideoCapture(0) with the input of the drone camera.

Take a look at the source code of the wrapper he made:
damiafuentes/DJITelloPy

Particularly this part:
Python:
    def get_udp_video_address(self):
        return 'udp://@' + self.VS_UDP_IP + ':' + str(self.VS_UDP_PORT)  # + '?overrun_nonfatal=1&fifo_size=5000'

    def get_video_capture(self):
        """Get the VideoCapture object from the camera drone
        Returns:
            VideoCapture
        """

        if self.cap is None:
            self.cap = cv2.VideoCapture(self.get_udp_video_address())

        if not self.cap.isOpened():
            self.cap.open(self.get_udp_video_address())

        return self.cap
 

Members online

No members online now.

Forum statistics

Threads
5,573
Messages
39,418
Members
16,263
Latest member
safields12