Dela via


AIVisionFaceModelFactory.FaceAttributes Method

Definition

Initializes a new instance of FaceAttributes.

public static Azure.AI.Vision.Face.FaceAttributes FaceAttributes (float? age = default, float? smile = default, Azure.AI.Vision.Face.FacialHair facialHair = default, Azure.AI.Vision.Face.GlassesType? glasses = default, Azure.AI.Vision.Face.HeadPose headPose = default, Azure.AI.Vision.Face.HairProperties hair = default, Azure.AI.Vision.Face.OcclusionProperties occlusion = default, System.Collections.Generic.IEnumerable<Azure.AI.Vision.Face.AccessoryItem> accessories = default, Azure.AI.Vision.Face.BlurProperties blur = default, Azure.AI.Vision.Face.ExposureProperties exposure = default, Azure.AI.Vision.Face.NoiseProperties noise = default, Azure.AI.Vision.Face.MaskProperties mask = default, Azure.AI.Vision.Face.QualityForRecognition? qualityForRecognition = default);
static member FaceAttributes : Nullable<single> * Nullable<single> * Azure.AI.Vision.Face.FacialHair * Nullable<Azure.AI.Vision.Face.GlassesType> * Azure.AI.Vision.Face.HeadPose * Azure.AI.Vision.Face.HairProperties * Azure.AI.Vision.Face.OcclusionProperties * seq<Azure.AI.Vision.Face.AccessoryItem> * Azure.AI.Vision.Face.BlurProperties * Azure.AI.Vision.Face.ExposureProperties * Azure.AI.Vision.Face.NoiseProperties * Azure.AI.Vision.Face.MaskProperties * Nullable<Azure.AI.Vision.Face.QualityForRecognition> -> Azure.AI.Vision.Face.FaceAttributes
Public Shared Function FaceAttributes (Optional age As Nullable(Of Single) = Nothing, Optional smile As Nullable(Of Single) = Nothing, Optional facialHair As FacialHair = Nothing, Optional glasses As Nullable(Of GlassesType) = Nothing, Optional headPose As HeadPose = Nothing, Optional hair As HairProperties = Nothing, Optional occlusion As OcclusionProperties = Nothing, Optional accessories As IEnumerable(Of AccessoryItem) = Nothing, Optional blur As BlurProperties = Nothing, Optional exposure As ExposureProperties = Nothing, Optional noise As NoiseProperties = Nothing, Optional mask As MaskProperties = Nothing, Optional qualityForRecognition As Nullable(Of QualityForRecognition) = Nothing) As FaceAttributes

Parameters

age
Nullable<Single>

Age in years.

smile
Nullable<Single>

Smile intensity, a number between [0,1].

facialHair
FacialHair

Properties describing facial hair attributes.

glasses
Nullable<GlassesType>

Glasses type if any of the face.

headPose
HeadPose

3-D roll/yaw/pitch angles for face direction.

hair
HairProperties

Properties describing hair attributes.

occlusion
OcclusionProperties

Properties describing occlusions on a given face.

accessories
IEnumerable<AccessoryItem>

Properties describing any accessories on a given face.

blur
BlurProperties

Properties describing any presence of blur within the image.

exposure
ExposureProperties

Properties describing exposure level of the image.

noise
NoiseProperties

Properties describing noise level of the image.

mask
MaskProperties

Properties describing the presence of a mask on a given face.

qualityForRecognition
Nullable<QualityForRecognition>

Properties describing the overall image quality regarding whether the image being used in the detection is of sufficient quality to attempt face recognition on.

Returns

A new FaceAttributes instance for mocking.

Applies to