# Estimating Distance From An Image [duplicate]

Assuming that the person stands parallel to a wall. The person and the wall are at the same ground level. The person takes a picture of the wall (Considering that the person always captures the bottom edge of the wall).

Hypothesis:

It is obvious that when the person is closer to the wall, the bottom edge of the wall tends to be at the bottom in the image. As we move farther, the edge moves more closer towards the center in the image.

So, there exists a relationship between "Distance from wall" and "Position of edge of the wall in the image".

The known parameters are:

-> Height of the camera from which the image is captured

-> Angle(Orientation of the camera)

-> Position of the edge in the image

How can I formulate the distance(depth) based on the above parameters? Are there any other parameters that affect the above relationship?

Note: I don't know any of the size of the objects in the screen.

• @osullic You could also assume a person to be a line and a wall to be a surface. – Ian May 17 '18 at 11:20
• This is pretty basic Photogrammetry. I'm afraid to answer though because I don't want to waste 20 minutes answering a question that will be closed for off topic. – PhotoScientist May 17 '18 at 13:29
• Worth noting, though, that this is a question about angular subtense whereas the proposed duplicate is about spatial subtense. The givens in this question aren't solvable via the solution linked unless this question is reworded. – PhotoScientist May 17 '18 at 16:59
• I'm voting to close this question as off-topic because it is about using a camera as a measuring device, not to take creative photographs. – Michael C May 17 '18 at 17:40
• There it is. I thought the close vote would be quicker on this one. here is angular size and if you don't know how to determine lens FOV. The rest is just trig. – PhotoScientist May 18 '18 at 13:30

You can't. Too many unknowns.

Another big variable you have not included is the current zoom of the lens.