ARKit 的坐标系不稳定 [英] The coordinate system of ARKit unstable

查看:40
本文介绍了ARKit 的坐标系不稳定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 AR 环境中加载了一个模型并添加了一个 ARAnchor 来稳定模型.当我将设备放在桌面上并稍后拿起时.模型的位置没有改变,但很快就会飞走.ARKit 的坐标系会飞起来,不稳定.

I load a model in the AR environment and add an ARAnchor to stabilize the model. When I place the device on the desktop and picked up later. The model’s position is not changed, but it will fly away soon. The coordinate system of ARKit will fly and be unstable.

如何避免或处理这种情况

How to avoid or deal with this situation

推荐答案

ARKit 的世界跟踪系统基于五个传感器的组合:

ARKit's world tracking system is based on a combination of five sensors:

  • 后置RGB摄像头
  • 激光雷达扫描仪
  • 陀螺仪
  • 加速度计
  • 磁力计
  • 后三个称为 Inertial Measurement Unit (IMU),以 1000 fps 运行.但是,看到您的 RGB 摄像头(以 60 fps 运行)和 LiDAR(也以 60 fps 运行)的情况也非常重要.

    Three latter ones are known as Inertial Measurement Unit (IMU) that operates at 1000 fps. But what sees your RGB Camera (running at 60 fps) and LiDAR (also at 60 fps) is very important too.

    因此,世界跟踪的稳定性在很大程度上取决于相机图像.

    Hence, a stability of world tracking greatly depends on camera image.

    以下是一些关于高质量跟踪的建议:

    Here are some recommendations for high-quality tracking:

    • 仅跟踪光线充足的环境(如果您没有 LiDAR)
    • 仅跟踪静态对象(不移动)
    • 不要跟踪白墙等质地较差的表面(如果您没有 LiDAR)
    • 不要跟踪具有重复纹理图案的表面(如波尔卡圆点)
    • 不要跟踪镜子、铬和玻璃物体(反射和折射)
    • 跟踪时缓慢移动 iPhone
    • 跟踪时不要摇晃 iPhone
    • 尽可能多地跟踪环境
    • 跟踪环境中的高对比度物体(如果您没有 LiDAR)
    • 如果您遵循这些建议,ARKit 中的坐标系将保持稳定.

      并查看这篇SO帖子中的图片 – 有一个很好的跟踪示例和一个坏示例.

      And look at the picture in this SO post – there are a good example for tracking and a bad one.

      这篇关于ARKit 的坐标系不稳定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆