获取建筑物的位置

发布于 2024-11-03 07:58:24 字数 117 浏览 4 评论 0原文

是否可以使用 Android 中的增强现实来获取相机视图中显示的建筑物的位置?

我有手机的 GPS 坐标,但现在我想获取相机视图中显示的建筑物的 GPS 坐标???

请给我一些想法????

Is it possible to get the location of the building shown in the Camera view using Augmented Reality in Android??

I have the GPS coordinates of the mobile but now i want to get the GPS coordinates of the building shown in the Camera view???

Please suggest me some ideas?????

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

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

发布评论

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

评论(2

少女七分熟 2024-11-10 07:58:24

如果您有手机的 GPS 坐标和手机的方向(使用手机的指南针),您可以使用一些三角学来近似建筑物的位置。剩下的问题是你必须在某个地方估计建筑物离你的手机有多远。

但是,如果您假设您总是在街道上行走并指向建筑物,那么找到该建筑物应该会更容易。

If you have the GPS coordinate of your mobile phone and the direction (using the compass of the mobile phone) in which it is hold, you could use some trigonometry to approximate the location of the building. The remaining problem is that you have to somewhere estimate how far the building is away from your phone.

But if you assume for example that you're always walking in streets and the point to a building, it should be easier to find the building.

任性一次 2024-11-10 07:58:24

我不会依赖罗盘输出,它总是有问题的。

我所做的是使用Gogle地图,获得位置修复,在地图上绘制点(如果你想绘制一条线,使用轴承,我猜这将是一个更好的提示),然后让用户使用卫星视图绘制或调整线来精确定位目标。然后,您可以获得新的地理坐标并获得相当准确的方位(如果需要)

我还建议同时使用网络和 GPS 提供商,在城市中,如果玻璃/金属峡谷,有时网络提供商比 GPS 更准确在阻止它的情况下,即使是几百码也能让你接近你的位置。

无论如何,这是一个有点手动的过程,但它比尝试猜测距离并希望方位角可靠(很少是)更可靠

I would not depend on the compass output, it's always in question.

What I did was use Gogle maps, get a location fix, draw the point on the map (if you want to draw a line use bearing that would be a better hint I guess) then let the user draw or adjust the line using sattelite view to pinpoint the target. You can then get the new geo-coord and get a fairly accurate bearing ( if that's required )

I would also suggest using both the network and gps provider, in cities sometimes the network provider is more accurate than the GPS if the glass/metal canyon is preventing it, even a couple of hundred yards can get you close to your position.

Anyway it's a somewhat manual process but it's more reliable then trying to guess distance and hoping the azimuth is reliable (rarely is)

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