如何获取远处物体的尺寸?

发布于 2024-08-31 21:59:44 字数 130 浏览 3 评论 0原文

我正在开发一个应用程序,旨在使用相机(手机或笔记本电脑)准确测量任何物体(建筑物、桌子、椅子、人等),但我不确定如何在不使用相机的情况下做到这一点很多资源,有人介意给我一些选择吗?我正在寻找一种轻量级的,可以通过计算机/手机快速处理以返回测量值。

I am working on an App that intends to give an accurate measure of any object (building, desk, chair, people, etc.) Using the camera (either phone's or laptop) but I'm unsure as to how to do this without using a lot of resources, would someone mind giving me some options? I'm looking for a lightweight one that can be quickly processed by the computer/phone to give back the measures.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦醒时光 2024-09-07 21:59:44

加入俱乐部!计算机视觉是一个众所周知的难题,猜测物体的大小就是其中的一部分。使用手机摄像头等低级传感器,您可以将三维世界投影到二维表面上。因为二维图像不能包含任何深度信息,如果没有某种参考,就不可能获得有用的值。

就像怀尔·狼 (Wile E. Coyote) 一样,你的手机摄像头无法仅凭一个参考点来区分精心绘制的幻象和真实事物。您要么需要同一对象的至少两个不同视图,要么需要一个尺寸已知的固定参考点。

一种可能是拍摄视频而不是照片。如果您可以将 GPS 读数等数据与视频一起存储,您将能够根据物体的投影尺寸变化量来推断物体的实际尺寸。在短距离(例如,几百米左右),这是简单的毕达哥拉斯代数。

替代文本 http://www.cartoongallery.com/Webstore/images/P/ 82122.jpg

Join the club! Computer vision is a notoriously difficult problem, and guessing the size of an object is a part of that. With a low-grade sensor like a phone camera, you are projecting a three-dimensional world onto a two-dimensional surface. Because two-dimensional images can't contain any depth information, without some kind of reference, it will be impossible to get a useful value.

Like Wile E. Coyote, your phone camera cannot tell the difference between a well-painted illusion and the real thing with only one point of reference. You'll either need at least two different views of the same object or a fixed reference point whose size is already known.

One possibility is to take a video instead of a picture. If you can store data like GPS readings along with the video, you will be able to infer the actual size of the object based on how much its projected size changes. At short distances (say, a few hundred meters or so) this is simple Pythagorean algebra.

alt text http://www.cartoongallery.com/Webstore/images/P/82122.jpg

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文