There is an equation in Physics about photography which is all about lenses.
${\rm magnification} = \frac{\rm image\,distance}{\rm object\,distance}$
Assuming we know the magnification, in order to calculate distance of object we need to know distance of image in the lens.
However, I couldn't find any information on web regarding to what image distance is equal to in a photographic lens.
It should be between $F$ and $2F$ (knowing photographs are taken beyond $2F$), and in between the lens glass and sensor of the camera.
How can we make sure about the distance of image in the camera?