目录

ARTarget

Class Info

public class ARTarget extends ARTrackableBase

用于扫描目标物体返回跟踪结果,包含目标物体的标签和形状,派生自ARTrackableBase。

目标语义识别标签类型可见ARTarget.TargetLabel,形状类型可见ARTarget.TargetShapeType。

该类AR Engine Server 3.13及以后可用。

Public Method Summary

Qualifier and Type

Method Name and Description

float[]

getAxisAlignBoundingBox()

坐标以目标物体中心为原点,获取语义物体最小外接包围盒坐标集(float数组大小为6),坐标格式为xmin,ymin,zmin,xmax,ymax,zmax。

ARPose

getCenterPose()

获取物体的中心位姿。

TargetLabel

getLabel()

获取真实场景中可识别语义的物体标签。

float

getRadius()

获取语义物体的球体半径。

TargetShapeType

getShapeType()

获取语义物体的形状类型。

Public Methods

[h2]getAxisAlignBoundingBox

Method

public float[] getAxisAlignBoundingBox()

坐标以目标物体中心为原点,获取语义物体最小外接包围盒坐标集(float数组大小为6),坐标格式为xmin,ymin,zmin,xmax,ymax,zmax。

Returns

Type

Description

float[]

当前语义识别到物体的最小外接包围盒坐标集。

[h2]getCenterPose

Method

public ARPose getCenterPose()

获取物体的中心位姿。

Returns

Type

Description

ARPose

当前语义识别到的物体的中心位姿。

[h2]getLabel

Method

public TargetLabel getLabel()

获取真实场景中可识别的物体标签。

Returns

Type

Description

TargetLabel

当前识别到的物体标签。

[h2]getRadius

Method

public float getRadius()

获取物体的球体半径。

Returns

Type

Description

float

当前识别到的物体球体半径。

[h2]getShapeType

Method

public TargetShapeType getShapeType()

获取物体的形状类型。

Returns

Type

Description

TargetShapeType

当前语义识别到的物体形状类型。