# distance calculation using two openmv

**URL:** <https://forums.openmv.io/t/distance-calculation-using-two-openmv/1050>\
**Category:** OpenMV Boards\
**Created:** [December 17, 2018, 10:19am UTC](https://forums.openmv.io/t/distance-calculation-using-two-openmv/1050 "2018-12-17T10:19:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnakumar77777](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@krishnakumar77777](https://forums.openmv.io/u/krishnakumar77777)\
**Post date:** [December 17, 2018, 10:19am UTC](https://forums.openmv.io/t/distance-calculation-using-two-openmv/1050/1 "2018-12-17T10:19:39Z")

</div>

Hi,  
Can i calculate the distance of an object from the camera using two openmv cameras?  
Kindly help me with this.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [December 18, 2018, 4:15pm UTC](https://forums.openmv.io/t/distance-calculation-using-two-openmv/1050/2 "2018-12-18T16:15:09Z")

</div>

Hi, we currently don’t support stereo vision right now.

If you’d like to get the depth of an object from two cameras you can use geometry to figure this out: [Computer stereo vision - Wikipedia](https://en.wikipedia.org/wiki/Computer_stereo_vision)

Honestly, I’d use another sensor in combination. Stereo vision isn’t the best.

---

<div class="post-metadata">

**Author:** ![krishnakumar77777](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@krishnakumar77777](https://forums.openmv.io/u/krishnakumar77777)\
**Post date:** [December 19, 2018, 8:04am UTC](https://forums.openmv.io/t/distance-calculation-using-two-openmv/1050/3 "2018-12-19T08:04:51Z")

</div>

hi,  
which sensor you have used for this?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [December 19, 2018, 5:05pm UTC](https://forums.openmv.io/t/distance-calculation-using-two-openmv/1050/4 "2018-12-19T17:05:12Z")

</div>

[https://github.com/openmv/openmv/blob/master/scripts/examples/24-External-Sensors/I2C\_Lidar\_Lite\_V3\_example\_code.py](https://github.com/openmv/openmv/blob/master/scripts/examples/24-External-Sensors/I2C_Lidar_Lite_V3_example_code.py)
