Class Info |
|---|
public class ARTarget extends ARTrackableBase 用于扫描目标物体返回跟踪结果,包含目标物体的标签和形状,派生自ARTrackableBase。 目标语义识别标签类型可见ARTarget.TargetLabel,形状类型可见ARTarget.TargetShapeType。 该类AR Engine Server 3.13及以后可用。 |
Qualifier and Type | Method Name and Description |
|---|---|
float[] | 坐标以目标物体中心为原点,获取语义物体最小外接包围盒坐标集(float数组大小为6),坐标格式为xmin,ymin,zmin,xmax,ymax,zmax。 |
| 获取物体的中心位姿。 | |
getLabel() 获取真实场景中可识别语义的物体标签。 | |
float | 获取语义物体的球体半径。 |
| 获取语义物体的形状类型。 |
Method |
|---|
public float[] getAxisAlignBoundingBox() 坐标以目标物体中心为原点,获取语义物体最小外接包围盒坐标集(float数组大小为6),坐标格式为xmin,ymin,zmin,xmax,ymax,zmax。 |
Returns
Type | Description |
|---|---|
float[] | 当前语义识别到物体的最小外接包围盒坐标集。 |
Method |
|---|
public ARPose getCenterPose() 获取物体的中心位姿。 |
Returns
Type | Description |
|---|---|
当前语义识别到的物体的中心位姿。 |
Method |
|---|
public TargetLabel getLabel() 获取真实场景中可识别的物体标签。 |
Returns
Type | Description |
|---|---|
当前识别到的物体标签。 |
Method |
|---|
public float getRadius() 获取物体的球体半径。 |
Returns
Type | Description |
|---|---|
float | 当前识别到的物体球体半径。 |
Method |
|---|
public TargetShapeType getShapeType() 获取物体的形状类型。 |
Returns
Type | Description |
|---|---|
当前语义识别到的物体形状类型。 |