android - 如何避免 ARCore 中的 "FrameHitTest while not tracking. Returning empty list. error message"?

标签 android augmented-reality arcore sceneform

我正在使用 ARCore 和 Sceneform。当我的应用程序尝试跟踪图像时,我收到了很多错误消息。 一切正常,除了我在长时间运行应用程序时表现不佳,我认为这可能与这些错误消息有关。

也许我需要以某种方式调节跟踪间隔?

以下是这些消息的截图:

I/native: plane_detection_manager.cc:204 Failed to get device pose.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
I/native: distribute.cc:92 No keypoints to prune.
I/native: plane_detection_manager.cc:204 Failed to get device pose.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
I/native: distribute.cc:92 No keypoints to prune.
I/native: plane_detection_manager.cc:204 Failed to get device pose.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
I/native: distribute.cc:92 No keypoints to prune.
I/native: image_target_detector.cc:187 Input query has too few keypoints.
E/native: planar_target_tracking_manager.cc:353 generic::unavailable: redwood::FAILED_PRECONDITION: VIO is not tracking
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
I/native: plane_detection_manager.cc:204 Failed to get device pose.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.
E/native: session.cc:1095 FrameHitTest while not tracking. Returning empty list.

我在以下配置下运行 sceneform 并使用增强图像数据库:

config.setUpdateMode(Config.UpdateMode.LATEST_CAMERA_IMAGE);
config.setFocusMode(Config.FocusMode.AUTO);

最佳答案

这不是错误,只是关于正在发生的事情的消息。 ARCore 一直尝试跟踪,这就是它使用大量内存并且对 CPU 负担过重的原因。

他正在尝试寻找表面并继续尝试。

这可能是硬件问题。今天我使用 S9 和 Pixel 2 XL 来测试我的应用程序,但它有时会变热,而且在 Nexus 2 上它的性能很差。

如今 ARCore 的性能在很大程度上取决于您使用的设备

关于android - 如何避免 ARCore 中的 "FrameHitTest while not tracking. Returning empty list. error message"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52483551/

相关文章:

android - 如何原型(prototype)算法运行在 android 相机图像上?

java - 使用 GPS 位置在 ARCore 中渲染 3D 对象?

android - Android (ARCore) 阻塞上的 PixelBuffer 对象和 glReadPixel

android - 如何在 ARCore Sceneform 中为节点的旋转设置动画

机器人 : is constraint layout support RTL

unity3d - Vuforia 中的增强现实

android - 在 Kotlin 中将值格式化为人类可读形式的依赖性

iphone - iOS - 计算距离、方位角、仰角和相对位置(增强现实)

Android:如何阻止 Android 1.6+ 缩放图像

java - 如何在Android App中获取两个日期之间的时差?