设置人脸比对参数配置
POST
https://api2.hik-cloud.com/api/v1/open/intelligents/faceLibs/actions/setFaceContrastCfgs
根据
faceContrastType
参数不同,可同时配置人脸比对和陌生人人脸比对请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api2.hik-cloud.com/api/v1/open/intelligents/faceLibs/actions/setFaceContrastCfgs' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "xxxxxxxx",
"channelNo": 1,
"faceContrastCgfs": [{
"faceContrastType": "faceContrast",
"enable": true,
"contrastFailureAlarmUpload": true,
"removeDuplicateEnabled": true,
"removeDuplicateTime": 12.0,
"faceLibs": [{
"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-25 09:30:03