pjreddie / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
25.79k stars 21.33k forks source link

calculate the distance from detected object #1725

Open neframikulic opened 5 years ago

neframikulic commented 5 years ago

hi @pjreddie i trained yolo on my own dataset with traffic signs. i can detect objects very well, now i need to calculate the distance between camera and object. i just need the height of detected object, i.e. height of a bounding box. which file i need to edit?

please can you help me

yohanmarvel-coder commented 5 years ago

image.c around line 294 there is draw_box_width(left, top, right, bot,....)