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

DJITelloPy: A new python wrapper for Tello

Joined
Oct 25, 2018
Messages
9
Likes
0
#6
Hi,
Great job!

Can your library support shooting stills images and receiving them?

Thanks!
 
Joined
Nov 16, 2018
Messages
7
Likes
2
Location
Canada
#7
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
8
Likes
7
#8
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
53
Likes
22
#10
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
53
Likes
22
#11
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
 
Joined
Nov 19, 2018
Messages
8
Likes
7
#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.
 
Joined
Nov 19, 2018
Messages
8
Likes
7
#14
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

nahuel

Well-known member
Joined
Dec 4, 2018
Messages
53
Likes
22
#15
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
Likes
0
#16
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
53
Likes
22
#17
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
 

New Threads

Members online

Forum statistics

Threads
2,473
Messages
19,081
Members
5,838
Latest member
briancrisbravo