IFaceOperations.VerifyFaceToPersonWithHttpMessagesAsync Method

Definition

Verify whether two faces belong to a same person. Compares a face Id with a Person 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>>
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))

Parameters

faceId
Guid

FaceId of the face, comes from Face - Detect

personId
Guid

Specify a certain person in a person group or a large person group. personId is created in PersonGroup Person - Create or LargePersonGroup Person - Create.

personGroupId
String

Using existing personGroupId and personId for fast loading a specified person. personGroupId is created in PersonGroup - Create. Parameter personGroupId and largePersonGroupId should not be provided at the same time.

largePersonGroupId
String

Using existing largePersonGroupId and personId for fast loading a specified person. largePersonGroupId is created in LargePersonGroup

  • Create. Parameter personGroupId and largePersonGroupId should not be provided at the same time.
customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to