Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance #4

Open
DDFar opened this issue May 30, 2018 · 3 comments
Open

Distance #4

DDFar opened this issue May 30, 2018 · 3 comments

Comments

@DDFar
Copy link

DDFar commented May 30, 2018

Hi!

I tried to understand the formula of distance estimation but i didn't get it.

Can you tell us.

in car distance, why "distance = (0.0397*2)/((locations[i].width)*0.00007)"

0.0397&0.00007 why this number?

thanks

@ramitix
Copy link
Owner

ramitix commented Jun 1, 2018

Distance formula:
D=(W*F)/P
Assumption: Average width of a car, W.
the focal length, F, camera "exif" value.
P is average pixel width

@DDFar
Copy link
Author

DDFar commented Jun 5, 2018

Thank you, did you have any reference for this formula, because I can't get right meaning of W and P, even if you said W is the average width of a car and P is average pixel width !!

@AIOSYM
Copy link

AIOSYM commented Jul 9, 2018

@DDFar, I found the link below explain what you are asking. Hope it helps!
https://www.pyimagesearch.com/2015/01/19/find-distance-camera-objectmarker-using-python-opencv/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants