i need to measure the distance between the pi camera module and the object , i've found this formula
distance to object (mm) = focal length (mm) * real height of the object (mm) * image height (pixels)
---------------------------------------------------------------------------
object height (pixels) * sensor height (mm)
i have found that for the pi NoIR we have :
Focal length : 3.60 mm +/- 0.01
real height of the object : i'm capturing people so it can be between 150 cm and 200 cm
image height (pixels) : 1944 (true ??)
object height (pixels) : ??
sensor height :3.67 x 2.74 mm (so the height should be 2.74 mm)
I found some parameters in the camera docs but i need your help for the others that marked with "?"
http://elinux.org/Rpi_Camera_Module https://www.raspberrypi.org/documentation/hardware/camera.md
thanks :)