How to measure the distance from CAMERA and the object

asked 2015-07-26 15:29:05 -0500

franken gravatar image

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 :)

edit retag flag offensive close merge delete