paul-pias / Object-Detection-and-Distance-Measurement

Using yolov3 & yolov4 weights objects are being detected from live video frame along with the measurement of the object from the camera without the support of any extra hardware device.
348 stars 118 forks source link

distance_measurement #12

Closed nourkarem closed 4 years ago

nourkarem commented 4 years ago

hello, please help to understand equations for distance estimation i want to use this part in my project
1-i donot understand third equation d=f+R/r what you mean is d==do((Distance of object from the lens)? is R height in image , r height in real? 2-how you get focal length formula? 3-how you get relation distance from w , h as I use images with size 600*800 4- if there any specs of camera

paul-pias commented 4 years ago

Kindly read the discussion in Issue#3.

HassanBinHaroon commented 2 years ago

Check out the following relevant and easiest implementation.

https://github.com/HassanBinHaroon/object_detection-PLUS-distance_estimation-v1