[英]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.