IFaceOperations.VerifyFaceToFaceWithHttpMessagesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verify whether two faces belong to a same person or whether one face belongs to a person. <br/> Remarks:<br />
- Higher face image quality means better identification precision. Please consider high-quality faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.
- For the scenarios that are sensitive to accuracy please make your own judgment.
- The 'recognitionModel' associated with the query faces' faceIds should be the same as the 'recognitionModel' used by the target face, person group or large person group.
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.VerifyResult>> VerifyFaceToFaceWithHttpMessagesAsync (Guid faceId1, Guid faceId2, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member VerifyFaceToFaceWithHttpMessagesAsync : Guid * Guid * 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 VerifyFaceToFaceWithHttpMessagesAsync (faceId1 As Guid, faceId2 As Guid, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of VerifyResult))
Parameters
- faceId1
- Guid
FaceId of the first face, comes from Face - Detect
- faceId2
- Guid
FaceId of the second face, comes from Face - Detect
- 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
Azure SDK for .NET