1

我正在使用 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);
4

1 回答 1

1

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

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

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

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

于 2018-09-25T09:14:05.773 回答