如何使用相机测量物体的高度、宽度和距离? [英] How to measure height, width and distance of object using camera?

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

问题描述

我提到了很多链接,但我仍然无法从中得到任何可以开始我的开发的观点.我想使用相机测量我的图像高度、宽度和距离.我发现了这个应用.我想让这种类型的应用程序不完全相同但完全相同,但根据我的要求,我想使用相机测量我的图像高度、宽度和距离.

I referred lot many links but still I am not able to get any point from that I can start my development. I want to measure my image height, width and distance using camera. I found this app . I want to make this type of application not exactly same but quite same but for my requirement I want to measure my image height, width and distance using camera.

谁能给我/建议我正确的方法或任何例子,以便我可以更多地了解这个要求.

Can anyone give me/suggest me the right way or any example so that I can get more idea about this requirement.

我试过这个:

http://android-er.blogspot.in/2012/04/gets-distances-from-camera-to-focus.html

推荐答案

我想我知道你在问什么.这是您可以执行的操作.

I think I know what you are asking for. Here is what you can do.

首先得到这个人的身高,比如 h 米.

first get the height of the person say h meters.

如果您可以从地面计算相机的高度(如果人为 h,则使用高度)并使用陀螺仪或 android 的其他东西获得角度 A 和 B,那么您可以使用上述公式计算对象的高度.

if you can calculate the height of the camera from ground (using height if the person i.e. h) and get angles A and B using gyroscope or something from android then you can calculate the height of the object using the above formula.

这不是你要找的吗???

Isn't this what you were looking for???

如果您需要任何解释,请告诉我.

let me know if you need any explanation.

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

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