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

Object tracking with Tello

sramctc

Member
Joined
Aug 6, 2018
Messages
6
Reaction score
0
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
 

dako

Active member
Joined
Aug 23, 2018
Messages
25
Reaction score
1
Where could one find your app? Cant pay anything, would love to try and beta test the tracking.
 

kjsmateusa

New member
Joined
Aug 26, 2018
Messages
1
Reaction score
0
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!
 

Zeno

Well-known member
Joined
Aug 12, 2018
Messages
302
Reaction score
64
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
 

nagainamae

Member
Joined
Sep 30, 2018
Messages
6
Reaction score
3
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
 

ds72tello

New member
Joined
Nov 13, 2018
Messages
3
Reaction score
3
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

ds72tello

New member
Joined
Nov 13, 2018
Messages
3
Reaction score
3
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.
 

Smoopy

New member
Joined
Nov 22, 2018
Messages
1
Reaction score
1
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

thegreatduke

New member
Joined
Nov 9, 2018
Messages
3
Reaction score
1
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

djbonsu

New member
Joined
Nov 27, 2018
Messages
2
Reaction score
0
VVT, looking forward to your app if you are still considering making it!
 

New Threads

Members online

Forum statistics

Threads
3,422
Messages
26,591
Members
8,863
Latest member
Goodgeonik