gpt4 book ai didi

android - ARCore 能否用于测量物体、房间、结构或区域中不在同一帧中的点之间的距离?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:02:54 27 4
gpt4 key购买 nike

我知道下面的引述对于 Project Google Tango 是非常正确的:

By combining Depth Perception with Motion Tracking, the device can measure distances between points in an area that aren't in the same frame.

基于以上,下面是几个问题:

1. ARCore可以用来测量距离吗Project Google Tango是吗?

2.Project Google Tango 相比,结果的准确性如何? ?

最佳答案

Ian M 用 this 部分回答了您问题的第一部分回答。以下是您可能会执行的操作:

Pose startPose = startAnchor.getPose();
Pose endPose = hitResult.getHitPose();

// Clean up the anchor
session.removeAnchors(Collections.singleton(startAnchor));
startAnchor = null;

// Compute the difference vector between the two hit locations.
float dx = startPose.tx() - endPose.tx();
float dy = startPose.ty() - endPose.ty();
float dz = startPose.tz() - endPose.tz();

// Compute the straight-line distance.
float distanceMeters = (float) Math.sqrt(dx*dx + dy*dy + dz*dz);

关于android - ARCore 能否用于测量物体、房间、结构或区域中不在同一帧中的点之间的距离?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46406358/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com