OpenCV: How-to calculate distance between camera and object using image?

后端 未结 3 1248
挽巷
挽巷 2020-11-28 23:21

I am a newbie in OpenCV. I am working with the following formula to calculate distance:

distance to object (mm) = focal length (mm) * real height of the obje         


        
3条回答
  •  失恋的感觉
    2020-11-29 00:04

    there is no such function available in opencv to calculate the distance between object and the camera. see this : Finding distance from camera to object of known size

    You should know that the parameters depend on the camera and will change if the camera is changed.

提交回复
热议问题