Skip to content
当前页面

人脸检测

功能简介

接口描述:

检测人脸信息

gongneng

调用URL:http://aicp.teamshub.com/aicp/face/detect

调用方法:

post

请求Header:

参数名类型是否必选参数说明
tokenStringtoken

请求参数:

参数名类型是否必选参数说明
imageString图片Base64编码,编码后的图片大小不超过2M

请求报文示例:

{
	"image": "图片Base64编码"
}

调用示例:

curl -X "POST" "`http://aicp.teamshub.com/aicp/face/detect`" \
     -H "Content-Type: application/json; charset=utf-8" \
     -d $'{ "image": "图片Base64编码"
		}'

返回值描述:

参数名类型参数说明
flagboolean成功失败标识
resultCodeInteger结果返回代码
messageString成功或异常描述信息
datajson对象接口返回数据
recordsObject[]数组返回结果数组
widthInteger头像框宽
xInteger头像x轴起点
yInteger头像y轴起点
heightInteger头像框高

成功返回示例:

{
    "flag": true,
    "resultCode": 0,
    "message": "系统处理正常",
    "data": {
        "records": [
            [
                {
                    "width": 166,
                    "x": 87,
                    "y": 49,
                    "height": 216
                }
            ]
        ]
    }
}

失败返回示例:

{
    "flag": false,
    "message": "80018,extract feature decode pictrue! get feature failed",
    "data": null
}

文档中心