I am using the formula
distance to object (mm) =
focal length (mm) * real height of the object (mm) * image height (pixels)
---------------------------------------------------------------------------
object height (pixels) * sensor height (mm)
to get the distance of an object from the camera (in this case deer) in a trail camera photo. My answers don't seem to correspond to what the real life distance of the deer to the camera would be and I'm just wondering if anyone knows if I'm missing something within the formula? Also my sensor height is the size of the sensor itself not the height from the ground, is it correct to use this?
For example I'm using the following information for one photo:
Focal length 3.1mm
Real height of the object 700 mm
Image height 1944 pixels
Object height 303 pixels
Sensor height 20.32 mm
and I got the answer 685.156 (mm I'm presuming).
Thanks very much :)