Dela via


AIVisionFaceModelFactory.FaceIdentificationResult Method

Definition

Initializes a new instance of FaceIdentificationResult.

public static Azure.AI.Vision.Face.FaceIdentificationResult FaceIdentificationResult (Guid faceId = default, System.Collections.Generic.IEnumerable<Azure.AI.Vision.Face.FaceIdentificationCandidate> candidates = default);
static member FaceIdentificationResult : Guid * seq<Azure.AI.Vision.Face.FaceIdentificationCandidate> -> Azure.AI.Vision.Face.FaceIdentificationResult
Public Shared Function FaceIdentificationResult (Optional faceId As Guid = Nothing, Optional candidates As IEnumerable(Of FaceIdentificationCandidate) = Nothing) As FaceIdentificationResult

Parameters

faceId
Guid

faceId of the query face.

candidates
IEnumerable<FaceIdentificationCandidate>

Identified person candidates for that face (ranked by confidence). Array size should be no larger than input maxNumOfCandidatesReturned. If no person is identified, will return an empty array.

Returns

A new FaceIdentificationResult instance for mocking.

Applies to