是否有可能测量距离与相机反对呢? [英] Is it possible to measure distance to object with camera?

查看:126
本文介绍了是否有可能测量距离与相机反对呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能测量距离用手机拍照对象。我的意思是,在我的应用程序启动相机,摄像机面向对象(可以说房子),然后preSS按钮,它计算的距离,显示我在屏幕上。

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天全站免登陆