你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FaceOperations.VerifyFaceToPersonWithHttpMessagesAsync 方法

定义

验证两张人脸是否属于同一个人。 将人脸 ID 与人员 ID 进行比较

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.VerifyResult>> VerifyFaceToPersonWithHttpMessagesAsync (Guid faceId, Guid personId, string personGroupId = default, string largePersonGroupId = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member VerifyFaceToPersonWithHttpMessagesAsync : Guid * Guid * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.VerifyResult>>
override this.VerifyFaceToPersonWithHttpMessagesAsync : Guid * Guid * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.VerifyResult>>
Public Function VerifyFaceToPersonWithHttpMessagesAsync (faceId As Guid, personId As Guid, Optional personGroupId As String = Nothing, Optional largePersonGroupId As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of VerifyResult))

参数

faceId
Guid

人脸的 FaceId,来自人脸 - 检测

personId
Guid

在人员组或大型人员组中指定特定人员。 personId 在 PersonGroup Person - Create 或 LargePersonGroup Person - Create 中创建。

personGroupId
String

使用现有的 personGroupId 和 personId 快速加载指定的人员。 personGroupId 是在 PersonGroup - Create 中创建的。 不应同时提供参数 personGroupId 和 largePersonGroupId。

largePersonGroupId
String

使用现有的 largePersonGroupId 和 personId 快速加载指定的人员。 largePersonGroupId 在 LargePersonGroup - Create 中创建。 不应同时提供参数 personGroupId 和 largePersonGroupId。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

实现

例外

当操作返回无效状态代码时引发

无法反序列化响应时引发

当所需参数为 null 时引发

当所需参数为 null 时引发

适用于