Microsoft Cognitive - Face API - 使用 persistedFaceId 进行面对面验证
Microsoft Cognitive - Face API - Using persistedFaceId to Face to Face verification
因此,我打算使用 Azure Face 进行面对面验证 Api。就我而言,我需要做的是验证用户发送的照片中的人脸是否与数据库中保存的照片相同。我的问题是:可以将人脸存储在 faceList 中,这样我就可以对来自我的数据库的人脸使用 persistedFaceId,而不是对同一张图片执行检测只是为了获取它的 ID ?
My question is: can store faces in a faceList in a way that I can use the persistedFaceId for the faces coming from my database instead of performing a detect on the same picture just to get it's Id?
您似乎想使用来自 Face - Detect 的一张脸的 faceId 和 persistedFaceId 进行面对面验证 来自 faceList。
根据我的测试,目前 Face - Verify 不支持这个。如果我们使用 faceId 和 persistedFaceId 进行面对面验证,它将 return 响应中出现以下错误。
{
"error": {
"code": "FaceNotFound",
"message": "Face is not found."
}
}
并且在Face - Verify文档中,我们还可以发现,面对面验证时使用的faceId应该来自Face - Detect.
因此,我打算使用 Azure Face 进行面对面验证 Api。就我而言,我需要做的是验证用户发送的照片中的人脸是否与数据库中保存的照片相同。我的问题是:可以将人脸存储在 faceList 中,这样我就可以对来自我的数据库的人脸使用 persistedFaceId,而不是对同一张图片执行检测只是为了获取它的 ID ?
My question is: can store faces in a faceList in a way that I can use the persistedFaceId for the faces coming from my database instead of performing a detect on the same picture just to get it's Id?
您似乎想使用来自 Face - Detect 的一张脸的 faceId 和 persistedFaceId 进行面对面验证 来自 faceList。
根据我的测试,目前 Face - Verify 不支持这个。如果我们使用 faceId 和 persistedFaceId 进行面对面验证,它将 return 响应中出现以下错误。
{
"error": {
"code": "FaceNotFound",
"message": "Face is not found."
}
}
并且在Face - Verify文档中,我们还可以发现,面对面验证时使用的faceId应该来自Face - Detect.