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

Input frame size for getting the distance result. #6

Closed rafiuddinkhan closed 4 years ago

rafiuddinkhan commented 4 years ago

I was trying to find the distance of the bounding boxes. What exactly should be the frame size for the formula to work. you have mentioned 640*480 and getting the bounding boxes and passing the (w,h) coordinates. I am not getting the results. Can you suggest to replicate the result?

paul-pias commented 4 years ago

May I know the result in detail? What is your expected outcome and what you are getting? Are you measuring distance in Inches or in Centimeters?

rafiuddinkhan commented 4 years ago

My input frame is 300*300 and using mobilenetv2 for object detection and I am getting the bounding box and passing it to your formula and measuring the distance in inches. for instance(5.3 inches instead of 60 inches)

paul-pias commented 4 years ago

Kindly check the new update in the repo. Hope it will resolve your issues.