简体   繁体   English

如何获得物体的高度和宽度?

[英]How to get height and width of the object?

I have a project in which i need to get an object's height and width through camera.That is if we open the camera and look the object through camera then object's height and width will displayed in a text box. 我有一个项目需要通过相机获取对象的高度和宽度,也就是说,如果我们打开相机并通过相机查看对象,则对象的高度和宽度将显示在文本框中。

can we do this or my idea is ambitious one ? 我们可以做到这一点,还是我的想法很雄心勃勃? Any help will be appreciated. 任何帮助将不胜感激。

You could do that only if there is another metric available for you. 只有在还有其他指标可用时,您才可以这样做。

For example, user specified that size of particular object on the same picture is 1 meter. 例如,用户指定同一图片特定对象的大小为1米。 So by using simple geometry and math you could calculate other sizes. 因此,通过使用简单的几何和数学,您可以计算其他尺寸。 Without such information your problem could be resolved. 没有此类信息,您的问题就可以解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何获得iPhone相机的宽度和高度 - How to get the width and height of the iphone camera UIImageView在旋转时会改变其宽度和高度,如何获得原始高度和宽度的正常状态? - UIImageView on rotating changes it width and height, how to get original height and width of normal state? 如何在iOS中使用相机计算物体的高度和宽度? - How to calculate height and width of object using camera only in iOS? Javascript iPad,iPhone和Android-如何获取页面的完整宽度和高度? - Javascript iPad, iPhone and Android - How to get page full width and height? Facebook graph API iOS:如何获取提要图片的宽度和高度? - Facebook graph API iOS : How to get width and height of a feed picture? 如何知道字符串的宽度和高度知道它在iPhone中的字体大小? - How to get the width and height of a string knowing its font size in iPhone? 如何在ipad中获得指定宽度和高度的弹出框架 - how to get a popover frame of specified width and height in ipad 如何使用MonoTouch获得iPhone / iPad的宽度和高度? - How to get width and height of iPhone/iPad using MonoTouch? 如何设置UIAlertView的高度和宽度? - How to set height and width of a UIAlertView? 如何检测UIImageView的宽度和高度 - How to detect the width and height of a UIImageView
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM