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

Object tracking with Tello

Use lower resolution: for many OpenCV application you need something like 512x512.
Skip frames if you have delay. Skip first 300 frames. Use WiFi extender. Set video quality slightly lower.
Python:
 drone.set_video_encoder_rate(1)
However I personally like approach with multi threading (no skip frames needed):

Python:
def recv_thread():
    global frameA
    global run_recv_thread
    global drone
    print('start recv_thread()')
    drone = tellopy.Tello()
    drone.connect()
    drone.subscribe(drone.EVENT_FLIGHT_DATA, handler)
    drone.set_video_encoder_rate(1)
    drone.set_loglevel(drone.LOG_WARN)
    container = av.open(drone.get_video_stream())
    while run_recv_thread:
        for f in container.decode(video=0):
            frameA = f
        time.sleep(0.01)

...

threading.Thread(target=recv_thread).start()
...
while run_cv_thread:
    if frameA is None:
        time.sleep(0.01)
    else:
        #do your opencv stuff with frameA

Thanks a lot
 
Where could one find your app? Cant pay anything, would love to try and beta test the tracking.
 
Dear vtvt

I am studying python with Tello. Is there a way to get the source code? I will pay a few bucks if you sell it. Thank you so much!
 
Tracking of green ball by OpenCV. I also modified a bit TelloPy library.

Give us link to share this awesome project of yours... like YouTube... thanks and more power
 
well, I think I've made a similar project. You can try the face tracking if you change some of the source code.(I'm sorry I cannot make it suit you because I need to finish my research.)
find1dream/Tello-Aruco
 
Object detection and tracking demo

Thanks for Tello Pilots members(Specially in this threads).

Inspired by yours posts, I made object track tello.

It track wildboard image with auto pilot mode.
(Yes, you can chage target)

FYI. Due to old laptop's detection speed is slow.
(7years old, i3, No GPU, Battery is run out...)

It use other's 'great' API and library.
- Object Detection : Darknet YOLO(I use Darkflow for windows)
- Tello Connection, Video : Tellopy(Thanks, thanks, thanks, ...)
- Image Processing : Opencv
- and I use Python

It's not a cool things like other member's work :)
I would be glad if a little helped for your ideas.

Thanks again for all of you.
 
Last edited:
  • Like
Reactions: djbonsu
Tellopy that you refer
Hi,

I didn't modified TelloPy library. Actually... I can't ;)
I just import TelloPy library and use some of their wellmade functions.

TelloPy is really AWESOME. It also support pip install!
And now it support Python 3.5!!
Thanks again for author - hanyazou.

hanyazou/TelloPy
Please read carefully README.md. You'll find more than you expected.

And for computer vision processing, please refer 'video_effect.py'.

Regards.
 
This is pretty awesome work, just trying to run video streaming and nothing is showing up, the control works great and however the image is like the first one in the GitHub shot.. wondering if there are any suggestions as to getting the streaming to work, fyi, have kept code the same ie no changes :)
 
  • Like
Reactions: thegreatduke
This is pretty awesome work, just trying to run video streaming and nothing is showing up, the control works great and however the image is like the first one in the GitHub shot.. wondering if there are any suggestions as to getting the streaming to work, fyi, have kept code the same ie no changes :)
Answer this man please, he is not the only one. :D
 
  • Like
Reactions: Smoopy

New Posts

Members online

Forum statistics

Threads
5,690
Messages
39,934
Members
17,023
Latest member
Repiv

New Posts