我对指南针和指南针功能的理解是? AR 应用程序中的 GPS 正确吗?

发布于 2024-08-05 01:12:02 字数 347 浏览 1 评论 0原文

在 AR 应用程序中,您可以在相机视图中注释对象或建筑物,我想了解手机(iPhone/Android)上不同硬件位在实现 AR 效果方面所发挥的作用。请详细说明以下内容:

  • 相机:提供现实的 2D 视图。
  • GPS:提供设备的经度、纬度。
  • 指南针:相对于磁北的方向。
  • 加速计:(它有作用吗?)
  • 高度计:(它有作用吗?)

示例:如果相机视图显示纽约天际线,上面列出的硬件中的信息如何帮助我注释视图?假设我有经度和克莱斯勒大楼的纬度并且在我的相机视图中可见,如何准确计算在 2D 图片上注释名称的位置?我知道给定两对(经度,纬度),您可以计算点之间的距离。

In an AR app whereby you annotate objects or buildings in a camera view, I want to understand the role, that different hardware bits - on the phone (iPhone/Android) - play to achieve the AR effect. Please elaborate more on the following:

  • Camera: provides the 2D view of reality.
  • GPS: provides the longitude,latitude of the device.
  • Compass: direction with respect to magnetic north.
  • Accelerometer: (does it have a role?)
  • Altimeter: (does it have a role?)

An example: if the camera view is showing the New York skyline, how does the information from the hardware listed above help me to annotate the view ? Assuming I have the longitude & latitude for the Chrysler building and it is visible in my camera view, how does one calculate with accuracy where to annotate the name on the 2D picture ? I know that given 2 pairs of (longitude,latitude), you can calculate the distance between the points.

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

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

发布评论

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

评论(1

坠似风落 2024-08-12 01:12:02
  • 使用相机获取视野。
  • 使用指南针确定设备的方向。方向决定了进入视野并需要用 AR 装饰器反映的一组对象。
  • 使用 GPS 确定您所在位置与每个物体之间的距离。距离通常反映在您为该对象显示的 AR 装饰器的大小或您显示的细节的数量上。
  • 使用加速度计来确定视图的水平线(三向加速度计足够灵敏,可以测量重力)。地平线可以与物体高度相结合,以正确垂直地定位 AR 装饰器。
  • 使用高度计提高垂直定位的精度。
  • 如果您有详细的地形/建筑物信息,您还可以使用高度计来确定各种对象的可见线,并剪掉(或部分)部分遮挡或不可见对象的 AR 装饰器。
  • 如果 AR 设备正在移动,请使用加速度计来确定速度,并限制每个视图下载的对象数量,或者智能预取将进入视图的对象,以优化视图更改的速度。

我将把从设备计算所有这些数据的细节留给您作为练习。 :-)

  • use the camera to get the field of view.
  • use the compass to determine the direction the device is oriented in. The direction determines the set of objects that fall into the field view and need to be reflected with AR adorners.
  • use the GPS to determine the distance between your location and each object. The distance is usually reflected in the size of the AR adorner you show for that object or in the number of details you show.
  • use the accelerometer to determine the horizon of the view (a 3-way accelerometer sensitive enough to measure the gravity force). The horizon can be combined with the object altitude to position the AR adorners properly vertically.
  • use the altimeter for added precision of vertical positioning.
  • if you have a detailed terrain/buildings information, you can also use the altimeter to determine line of visibility to the various objects and clip out (or partially) the AR adorners for partially obscured or invisible objects.
  • if the AR device is moving, use the accelerometers to determine the speed and do some either throttling of the number of objects downloaded per view or smart pre-fetching of the objects that will come into view to optimize for the speed of view changes.

I will leave the details of calculating all this data from the devices as an exercise to you. :-)

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