Share via


FaceOperationsExtensions.VerifyFaceToPersonAsync Method

Definition

Verify whether two faces belong to a same person. Compares a face Id with a Person Id

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Vision.Face.Models.VerifyResult> VerifyFaceToPersonAsync (this Microsoft.Azure.CognitiveServices.Vision.Face.IFaceOperations operations, Guid faceId, Guid personId, string personGroupId = default, string largePersonGroupId = default, System.Threading.CancellationToken cancellationToken = default);
static member VerifyFaceToPersonAsync : Microsoft.Azure.CognitiveServices.Vision.Face.IFaceOperations * Guid * Guid * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Vision.Face.Models.VerifyResult>
<Extension()>
Public Function VerifyFaceToPersonAsync (operations As IFaceOperations, faceId As Guid, personId As Guid, Optional personGroupId As String = Nothing, Optional largePersonGroupId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VerifyResult)

Parameters

operations
IFaceOperations

The operations group for this extension method.

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.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to