Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to measure the distance from CAMERA and the object

Hi all,

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)

but i"m wondering opencv doesn"t implement a function to do this measure ??

thanks :)