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

How can i detect an object's distance from the Tello drone's camera?

RogueSquadron1

Active member
Joined
Dec 23, 2019
Messages
34
Reaction score
3
It seems this is not supported in both of the Tello models.
But i'm hoping this is directly supported by a more advanced drone (such as Mavic).
Else I'd have to go straight into image recognition algorithms to try to obtain this information.

Anybody ever tried to do something like this?
 
You can't, the closest thing you could do is get really close and then measure using a virtual GPS as you fly backwards from the object. The Tello is just not designed with collision detection.
 
You can't, at least not from a static image. No stereoscopic view - no distance.

Now if the drone moves and you know the distances it travels, you can derive distance from this information and several images. Never done that but doesn't sound easy to me.
 
  • Like
Reactions: arrow_206
You can estimate the distance of an object from its apparent angular size (in pixel), its real size (in cm) and the trigonometric tangent function.
I do this quite well in my computer vision based 3d person tracking

 
  • Like
Reactions: xiaobai
You can estimate the distance of an object from its apparent angular size (in pixel), its real size (in cm) and the trigonometric tangent function.
I do this quite well in my computer vision based 3d person tracking

thats cheating because you know your own height. but smart.. :)

Cool stuff by the way. At 2:14 you are identified as a sheep on a dike :ROFLMAO::LOL:
 
Last edited:
thats cheating because you know your own height. but smart.. :)

Cool stuff by the way. At 2:14 you are identif

In some conditions (grass background, white shirt, drone quite distant) , my object detector confuses me with a sheep (fortunately.with a low confidence!) and It stops the drone, A quick workaround would be to allow sheep tracking ... Not the best if someday someone encounters a flock! :LOL:
 
  • Like
Reactions: umanbean
In some conditions (grass background, white shirt, drone quite distant) , my object detector confuses me with a sheep (fortunately.with a low confidence!) and It stops the drone, A quick workaround would be to allow sheep tracking ... Not the best if someday someone encounters a flock! :LOL:
Could be a new application: TelloShepherd - Circles the baricenter of all sheep in view to make them flock together.
 
  • Like
Reactions: scoble08
Could be a new application: TelloShepherd - Circles the baricenter of all sheep in view to make them flock together.

Great idea, definetly a killer app for the modern Shepherd! ;)
The most complex computer application I've done untill now is for basketball video recording, we are not very young so maybe slower than sheep... and this makes things easier! :D
Maybe you have seen it somewhere but I link here again anyway ....

 
Great idea, definetly a killer app for the modern Shepherd! ;)
The most complex computer application I've done untill now is for basketball video recording, we are not very young so maybe slower than sheep... and this makes things easier! :D
Maybe you have seen it somewhere but I link here again anyway ....

no worries I looked at all your videos. As you may have seen I am working on a CV-based followme app so I use all input I can find.
But I am still fighting the PIDs - and apple as they won't allow me to release the app for imaginary legal reasons... ?
 
With a control engineering background I followed a model based design (MATLAB + Simulink) to model and design pid control loops. If you want some insight about my solutions (or whatever Is your fighti I can give you with pleasure maybe by mail.
On the other hand trying to port this on Android for me is quite a nightmare.
For now I'm not trying to sell an app, but going in the field with a smartphone Is really really better (for notebook size/weight and safety reason)
I let aside Apple world ...
 
just the PID fine tuning. It works OK, but sometimes there are situations where Tello just doesn't react quickly enough even though it could with some better tuning.

Not a big deal- just some trial and error. But the weather doesn't cooperate here
 
Nice! In tello sdk there Is a speed deadzone between -10 and +10 command values. This nonlinearity Is annoying when the proportional error Is low ... I don't know if this can help you ...
 
  • Like
Reactions: Mirek
Yep that's it. Proportional is low, integral starts to build and then it overshoots. I guess I will just define a dead zone for yaw.
 
After many trials I solved adding/subtracting a constant. Something like +8*sign(err_prop) to reduce this deadzone!
 
  • Like
Reactions: volate!lo
Thats what I planned to do, but for each of the 3 PID components individually.

However the refused admittance to the Apple store has brought this project to a complete stop while in the middle of this PID tuning wrestle. No point to continue until I get approval :cry:
 

Members online

No members online now.

Forum statistics

Threads
5,696
Messages
39,955
Members
17,054
Latest member
Soccer843