1

I want to make this phone app that can measure distance. I want to know how far away something is from the phone. So let's say I want to know how far away a wall is...I'd like my phone to tell me.

So how might this work? Well, I can shine an ordinary red laser pointer against the wall (in the dark) and have the phone's camera "see" the dot.

The further away the phone is from the dot, the smaller the dot will be. The picture below shows the dot from 1 foot, 5 feet, 10 feet, 20 feet, and 25 feet away. I think the app could then measure the size of the dot and figure out how far away the dot actually is from the phone. And then it could use a simple ratio or formula to determine distance for other sizes.

So my question is: Would this likely work for measuring distance?

enter image description here

4

2 回答 2

1

只要你能清楚地识别激光点我会说:是的。我在进行识别时看到了问题。距离测量只是一些数学和物理的东西(我不确定要使用什么,但我认为可能有一些有用的光学东西......截距定理?)或者你可以通过测试创建一个“算法”(然后是准确性可能是个问题;))

于 2012-08-31T00:36:19.423 回答
0

所以,我认为双激光笔的理念优于单激光笔的理念。

但是,由于摄像头离墙壁越来越远,我相信倾斜激光指示器是一个不可行的解决方案。

相反,我认为让激光指示器保持平行是解决方案。这样,你走得越远,光束在照片中看起来越来越近,但它们之间的距离仍然相同。然后你可以很容易地想出一些公式来根据照片中点的距离来测量距离。

于 2012-08-31T04:59:56.027 回答