可以用相机测量到物体的距离吗? [英] Is it possible to measure distance to object with camera?

查看:18
本文介绍了可以用相机测量到物体的距离吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以用手机摄像头测量到物体的距离?

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 then press the button and it calculates the distance and shows me in screen.

如果可能的话,我可以在哪里找到一些关于它的教程或信息?

If it's possible where I can find some tutorial or information about it?

推荐答案

你应该阅读 ithinkdiff.com 如何测量"距离:

Well you should read how ithinkdiff.com "measures" the distance:

使用 iPhone 的角度来估计到地面上某个点的距离.将 iPhone 放在您的面前,对准相机中的点并获得直接距离的读数.然后可以在速度工具中使用距离.

Uses the angle of the iPhone to estimate the distance to a point on the ground. Hold the iPhone in front of you, align the point in the camera and get a direct reading of the distance. The distance can then be used in the speed tool.

所以基本上它需要你拿着手机的高度(眼睛水平),然后你必须将相机对准物体接触地面的点.然后手机测量倾斜度并通过简单的三角函数计算距离.

So basically it takes the height of where you hold the phone (eye-level), then you must point the camera to the point where object touches the ground. Then the phone measures the inclination and with simple trigonometry it calculates distance.

这当然不是很准确.物体越远,它就越不准确.它还假设地面是水平的.

This is of course not very accurate. It gets less accurate the further the object is. Also it assumes that the ground is level.

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

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