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

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

问题描述

我提到很多很多链接,但我仍然无法得到任何意见,我可以开始我的发展。我想用相机测量我的图像高度,宽度和距离。我找到了此应用。我想让这种类型的应用程序不完全相同,但完全相同,但为了我的要求,我想使用相机测量我的图像高度,宽度和距离。

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.

我试过这个:

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

推荐答案

I认为我知道你要的是什么。这是你可以做的。

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),并获得角度A和B使用陀螺仪或从android的东西,那么你可以使用上面的公式计算对象的高度。

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