Is it possible to measure distance to object with camera?

前端 未结 10 1973
孤独总比滥情好
孤独总比滥情好 2020-11-27 12:22

Is it possible to measure distance to object with phone camera?

I mean, in my application I start the camera, facing the camera to the object (lets say house) and th

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 12:43

    You can use the technique used by our eye to get perspective of depth and distance.

    1) Get 2 images of the same object from two different camera positions.

    2) The distance or pixels between object in 2 images is inversely proportional to distance between camera and object.

    The implementation is available at https://github.com/agnelvishal/Distance-between-camera-and-object Here is the research paper http://dsc.ijs.si/files/papers/S101%20Mrovlje.pdf

提交回复
热议问题