获取人形关键点

更新时间:2021-07-16 08:05:33下载pdf

本文介绍获取人形关键点的 API。

接口描述

通过解析图片的 base64 数据,输出人形的关键点信息。

接口地址

POST: /v1.0/iot-03/ai-vision/human-keypoints/actions/detect

请求参数

返回参数

参数名 类型 说明
result List 具体点位参考

result 说明

参数名 类型 说明
nose HumanKeyPointRes 鼻子坐标与置信度
left_eye HumanKeyPointRes 左眼坐标与置信度
right_eye HumanKeyPointRes 右眼坐标与置信度
left_ear HumanKeyPointRes 左耳坐标与置信度
right_ear HumanKeyPointRes 右耳坐标与置信度
left_sholder HumanKeyPointRes 左肩膀坐标与置信度
right_sholder HumanKeyPointRes 右肩膀坐标与置信度
left_elbow HumanKeyPointRes 左手肘坐标与置信度
right_elbow HumanKeyPointRes 右手肘坐标与置信度
left_wrist HumanKeyPointRes 左手腕坐标与置信度
right_wrist HumanKeyPointRes 右手腕坐标与置信度
left_hip HumanKeyPointRes 左臀部坐标与置信度
right_hip HumanKeyPointRes 右臀部坐标与置信度
left_knee HumanKeyPointRes 左膝盖坐标与置信度
right_knee HumanKeyPointRes 右膝盖坐标与置信度
left_ankle HumanKeyPointRes 左脚踝坐标与置信度
right_ankle HumanKeyPointRes 右脚踝坐标与置信度

right_knee 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

nose 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

left_hip 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

right_ankle 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

right_wrist 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

right_sholder 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

left_eye 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

right_elbow 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

left_knee 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

right_ear 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

left_elbow 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

left_ear 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

right_eye 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

left_ankle 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

right_hip 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

left_wrist 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

left_sholder 说明

参数名 类型 说明
x Float 横轴位置
y Float 纵轴位置
confidence Float 置信度,数值越大,准确率越高,区间范围0-1

请求示例

POST: /v1.0/iot-03/ai-vision/human-keypoints/actions/detect
{ "image": "/9j/4AAQSkxxxxxxxxxxxxxxxx" }

返回示例

{ "result": { "nose": [ { "confidence": "0.98", "x": 0, "y": 0 } ], "leftEye": { "confidence": "0.95", "x": 0, "y": 0 } }, "success": true }

错误码

参考 错误码