VKBodyAnchor
人体 anchor
支持情况:

方法
| 参数 | 类型 | 说明 |
|---|---|---|
| id | number | 唯一标识 |
| type | 5 | 类型 |
| detectId | number | 识别序号 |
| size | ISize | 相对视窗的尺寸,取值范围为 [0, 1],0 为左/上边缘,1 为右/下边缘 |
| origin | IOrigin | 相对视窗的位置信息,取值范围为 [0, 1],0 为左/上边缘,1 为右/下边缘 |
| confidence | number[] | 关键点的置信度 |
| points | IPoint[] | 关键点 |
| score | number | 总体置信值 |
参数
IType
类型
| 参数 | 说明 |
|---|---|
| 5 | 人体 |
ISize
相对视窗的尺寸
| 参数 | 类型 | 说明 |
|---|---|---|
| width | number | 宽度 |
| height | number | 高度 |
IOrigin
相对视窗的位置信息
| 参数 | 类型 | 说明 |
|---|---|---|
| x | number | 横坐标 |
| y | number | 纵坐标 |
IPoint
关键点
| 参数 | 类型 | 说明 |
|---|---|---|
| x | number | 横坐标 |
| y | number | 纵坐标 |
API 支持度
| API | 微信小程序 | H5 | React Native | Harmony |
|---|---|---|---|---|
| VKBodyAnchor | ✔️ |