Dela via


AIVisionFaceModelFactory.FaceDetectionResult Method

Definition

Initializes a new instance of FaceDetectionResult.

public static Azure.AI.Vision.Face.FaceDetectionResult FaceDetectionResult (Guid? faceId = default, Azure.AI.Vision.Face.FaceRecognitionModel? recognitionModel = default, Azure.AI.Vision.Face.FaceRectangle faceRectangle = default, Azure.AI.Vision.Face.FaceLandmarks faceLandmarks = default, Azure.AI.Vision.Face.FaceAttributes faceAttributes = default);
static member FaceDetectionResult : Nullable<Guid> * Nullable<Azure.AI.Vision.Face.FaceRecognitionModel> * Azure.AI.Vision.Face.FaceRectangle * Azure.AI.Vision.Face.FaceLandmarks * Azure.AI.Vision.Face.FaceAttributes -> Azure.AI.Vision.Face.FaceDetectionResult
Public Shared Function FaceDetectionResult (Optional faceId As Nullable(Of Guid) = Nothing, Optional recognitionModel As Nullable(Of FaceRecognitionModel) = Nothing, Optional faceRectangle As FaceRectangle = Nothing, Optional faceLandmarks As FaceLandmarks = Nothing, Optional faceAttributes As FaceAttributes = Nothing) As FaceDetectionResult

Parameters

faceId
Nullable<Guid>

Unique faceId of the detected face, created by detection API and it will expire 24 hours after the detection call. To return this, it requires 'returnFaceId' parameter to be true.

recognitionModel
Nullable<FaceRecognitionModel>

The 'recognitionModel' associated with this faceId. This is only returned when 'returnRecognitionModel' is explicitly set as true.

faceRectangle
FaceRectangle

A rectangle area for the face location on image.

faceLandmarks
FaceLandmarks

An array of 27-point face landmarks pointing to the important positions of face components. To return this, it requires 'returnFaceLandmarks' parameter to be true.

faceAttributes
FaceAttributes

Face attributes for detected face.

Returns

A new FaceDetectionResult instance for mocking.

Applies to