Partager via


FaceAttributes Class

Face attributes for the detected face.

Inheritance
azure.ai.vision.face._model_base.Model
FaceAttributes

Constructor

FaceAttributes(*args: Any, **kwargs: Any)

Variables

Name Description
age

Age in years.

smile

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

facial_hair

Properties describing facial hair attributes.

glasses

Glasses type if any of the face. Known values are: "noGlasses", "readingGlasses", "sunglasses", and "swimmingGoggles".

head_pose

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

hair

Properties describing hair attributes.

occlusion

Properties describing occlusions on a given face.

accessories

Properties describing any accessories on a given face.

blur

Properties describing any presence of blur within the image.

exposure

Properties describing exposure level of the image.

noise

Properties describing noise level of the image.

mask

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

quality_for_recognition

Properties describing the overall image quality regarding whether the image being used in the detection is of sufficient quality to attempt face recognition on. Known values are: "low", "medium", and "high".

Methods

as_dict

Return a dict that can be JSONify using json.dump.

clear
copy
get
items
keys
pop
popitem
setdefault
update
values

as_dict

Return a dict that can be JSONify using json.dump.

as_dict(*, exclude_readonly: bool = False) -> Dict[str, Any]

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

Returns

Type Description

A dict JSON compatible object

clear

clear() -> None

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

copy

copy() -> Model

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

get

get(key: str, default: Any = None) -> Any

Parameters

Name Description
key
Required
default
Default value: None

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

items

items() -> ItemsView[str, Any]

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

keys

keys() -> KeysView[str]

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

pop

pop(key: str, default: ~typing.Any = <object object>) -> Any

Parameters

Name Description
key
Required
default

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

popitem

popitem() -> Tuple[str, Any]

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

setdefault

setdefault(key: str, default: ~typing.Any = <object object>) -> Any

Parameters

Name Description
key
Required
default

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

update

update(*args: Any, **kwargs: Any) -> None

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

values

values() -> ValuesView[Any]

Keyword-Only Parameters

Name Description
exclude_readonly

Whether to remove the readonly properties.

Attributes

accessories

Properties describing any accessories on a given face.

accessories: List[_models.AccessoryItem] | None

age

Age in years.

age: float | None

blur

Properties describing any presence of blur within the image.

blur: _models.BlurProperties | None

exposure

Properties describing exposure level of the image.

exposure: _models.ExposureProperties | None

facial_hair

Properties describing facial hair attributes.

facial_hair: _models.FacialHair | None

glasses

"noGlasses", "readingGlasses", "sunglasses", and "swimmingGoggles".

glasses: str | _models.GlassesType | None

hair

Properties describing hair attributes.

hair: _models.HairProperties | None

head_pose

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

head_pose: _models.HeadPose | None

mask

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

mask: _models.MaskProperties | None

noise

Properties describing noise level of the image.

noise: _models.NoiseProperties | None

occlusion

Properties describing occlusions on a given face.

occlusion: _models.OcclusionProperties | None

quality_for_recognition

Properties describing the overall image quality regarding whether the image being used in the detection is of sufficient quality to attempt face recognition on. Known values are: "low", "medium", and "high".

quality_for_recognition: str | _models.QualityForRecognition | None

smile

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

smile: float | None