更新时间:2021-07-16 08:22:25下载pdf
本文介绍人形检测的 API。
对图片中的人形进行检测,并返回人形在图片中的具体坐标。本服务最多同时检测同一张图片中的五个人形。
注意: 图片的 base64 编码不包含图片头
(data:image/jpg;base64,)
。
POST: /v1.0/iot-03/ai-vision/human-detection
参数名 | 类型 | 说明 |
---|---|---|
result | List |
result
说明
参数名 | 类型 | 说明 |
---|---|---|
confidence | Float | 置信度,数值越大,准确率越高,区间范围 0~1 |
coordinates | CoordinatesRes | 人形在图片中的坐标 |
coordinates
说明
参数名 | 类型 | 说明 |
---|---|---|
left | Integer | 人形框和图片左侧边界的距离,单位为 px |
top | Integer | 人形框和图片顶部边界的距离,单位为 px |
right | Integer | 人形框和图片右侧边界的距离,单位为 px |
bottom | Integer | 人形框和图片底部边界的距离,单位为 px |
POST: /v1.0/iot-03/ai-vision/human-detection
{
"image": "/9j/4AAQSkxxxxxxxxxxxxxxxx"
}
{
"result": [
{
"confidence": 0.96324956,
"coordinates": {
"bottom": 932,
"right": 777,
"top": 10,
"left": 0
}
}
],
"t": 1618820271535,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈