可以用iPhone和激光指示器测量距离吗? [英] Possible to measure distance with an iPhone and laser pointer?

查看:57
本文介绍了可以用iPhone和激光指示器测量距离吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个可以测量距离的手机应用程序.我想知道手机离手机有多远.假设我想知道一堵墙有多远...我想用手机告诉我.

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.

电话离点越远,点越小.下图显示了距1英尺,5英尺,10英尺,20英尺和25英尺的点.我认为该应用程序可以然后测量点的大小,并确定点实际上离手机有多远.然后可以使用简单的比率或公式来确定其他尺寸的距离.

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.

所以我的问题是:这可能对测量距离有用吗?

推荐答案

只要您能清楚地识别出激光点,我就会说:是的.我在进行识别时发现了问题. 距离测量只是一些数学和物理方面的东西(我不确定要用什么,但我认为可能存在一些有用的光学方面的东西……截取定理?),或者您可以通过测试来创建算法"(但随后可以得出准确性)可能是一个问题;))

As long as you can clearly identify the laser dot I would say:Yes. I'm seeing the problem in doing the identifying. The distance measuring is just some maths and physics stuff (I'm not sure what to use but I think there is maybe some useful optics stuff... intercept theorem?) or you can create an "algorithm" by testing(but then accuracy could be a problem ;))

这篇关于可以用iPhone和激光指示器测量距离吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆