Share via


FaceAttributes Class

  • java.lang.Object
    • com.azure.ai.vision.face.models.FaceAttributes

Implements

public final class FaceAttributes
implements JsonSerializable<FaceAttributes>

Face attributes for the detected face.

Method Summary

Modifier and Type Method and Description
static FaceAttributes fromJson(JsonReader jsonReader)

Reads an instance of FaceAttributes from the JsonReader.

List<AccessoryItem> getAccessories()

Get the accessories property: Properties describing any accessories on a given face.

Double getAge()

Get the age property: Age in years.

BlurProperties getBlur()

Get the blur property: Properties describing any presence of blur within the image.

ExposureProperties getExposure()

Get the exposure property: Properties describing exposure level of the image.

FacialHair getFacialHair()

Get the facialHair property: Properties describing facial hair attributes.

GlassesType getGlasses()

Get the glasses property: Glasses type if any of the face.

HairProperties getHair()

Get the hair property: Properties describing hair attributes.

HeadPose getHeadPose()

Get the headPose property: 3-D roll/yaw/pitch angles for face direction.

MaskProperties getMask()

Get the mask property: Properties describing the presence of a mask on a given face.

NoiseProperties getNoise()

Get the noise property: Properties describing noise level of the image.

OcclusionProperties getOcclusion()

Get the occlusion property: Properties describing occlusions on a given face.

QualityForRecognition getQualityForRecognition()

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

Double getSmile()

Get the smile property: Smile intensity, a number between [0,1].

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static FaceAttributes fromJson(JsonReader jsonReader)

Reads an instance of FaceAttributes from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FaceAttributes if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the FaceAttributes.

getAccessories

public List<AccessoryItem> getAccessories()

Get the accessories property: Properties describing any accessories on a given face.

Returns:

the accessories value.

getAge

public Double getAge()

Get the age property: Age in years.

Returns:

the age value.

getBlur

public BlurProperties getBlur()

Get the blur property: Properties describing any presence of blur within the image.

Returns:

the blur value.

getExposure

public ExposureProperties getExposure()

Get the exposure property: Properties describing exposure level of the image.

Returns:

the exposure value.

getFacialHair

public FacialHair getFacialHair()

Get the facialHair property: Properties describing facial hair attributes.

Returns:

the facialHair value.

getGlasses

public GlassesType getGlasses()

Get the glasses property: Glasses type if any of the face.

Returns:

the glasses value.

getHair

public HairProperties getHair()

Get the hair property: Properties describing hair attributes.

Returns:

the hair value.

getHeadPose

public HeadPose getHeadPose()

Get the headPose property: 3-D roll/yaw/pitch angles for face direction.

Returns:

the headPose value.

getMask

public MaskProperties getMask()

Get the mask property: Properties describing the presence of a mask on a given face.

Returns:

the mask value.

getNoise

public NoiseProperties getNoise()

Get the noise property: Properties describing noise level of the image.

Returns:

the noise value.

getOcclusion

public OcclusionProperties getOcclusion()

Get the occlusion property: Properties describing occlusions on a given face.

Returns:

the occlusion value.

getQualityForRecognition

public QualityForRecognition getQualityForRecognition()

Get the qualityForRecognition property: 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:

the qualityForRecognition value.

getSmile

public Double getSmile()

Get the smile property: Smile intensity, a number between [0,1].

Returns:

the smile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to