faceContrastType
参数不同,可同时配置人脸比对和陌生人人脸比对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": "操作成功"
}