配置人脸比对参数
PUT
https://api2.hik-cloud.com/api/v1/community/superBrains/actions/setFaceContrast
功能描述
faceContrastType
参数不同,可同时配置人脸比对和陌生人人脸比对请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api2.hik-cloud.com/api/v1/community/superBrains/actions/setFaceContrast' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "xxxxxxxx",
"channelNo": 1,
"faceContrastParams": [{
"faceContrastType": "faceContrast",
"enable": true,
"contrastFailureAlarmUpload": true,
"alarmOutType": "off",
"fdLibList": [{
"index": 2,
"thresholdValue": 32,
"customFaceLibId": "33333"
}, {
"index": 1,
"thresholdValue": 68,
"customFaceLibId": "22222"
}]
}]
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功"
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json
返回响应
修改于 2022-05-30 09:53:11