FaceAttributes Class
- java.
lang. Object - com.
azure. ai. vision. face. models. FaceAttributes
- com.
Implements
public final class FaceAttributes
implements JsonSerializable<FaceAttributes>
Face attributes for the detected face.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Face |
fromJson(JsonReader jsonReader)
Reads an instance of Face |
|
List<Accessory |
getAccessories()
Get the accessories property: Properties describing any accessories on a given face. |
| Double |
getAge()
Get the age property: Age in years. |
|
Blur |
getBlur()
Get the blur property: Properties describing any presence of blur within the image. |
|
Exposure |
getExposure()
Get the exposure property: Properties describing exposure level of the image. |
|
Facial |
getFacialHair()
Get the facial |
|
Glasses |
getGlasses()
Get the glasses property: Glasses type if any of the face. |
|
Hair |
getHair()
Get the hair property: Properties describing hair attributes. |
|
Head |
getHeadPose()
Get the head |
|
Mask |
getMask()
Get the mask property: Properties describing the presence of a mask on a given face. |
|
Noise |
getNoise()
Get the noise property: Properties describing noise level of the image. |
|
Occlusion |
getOcclusion()
Get the occlusion property: Properties describing occlusions on a given face. |
|
Quality |
getQualityForRecognition()
Get the quality |
| Double |
getSmile()
Get the smile property: Smile intensity, a number between [0,1]. |
|
Json |
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:
Returns:
Throws:
getAccessories
public List<AccessoryItem> getAccessories()
Get the accessories property: Properties describing any accessories on a given face.
Returns:
getAge
public Double getAge()
Get the age property: Age in years.
Returns:
getBlur
public BlurProperties getBlur()
Get the blur property: Properties describing any presence of blur within the image.
Returns:
getExposure
public ExposureProperties getExposure()
Get the exposure property: Properties describing exposure level of the image.
Returns:
getFacialHair
public FacialHair getFacialHair()
Get the facialHair property: Properties describing facial hair attributes.
Returns:
getGlasses
public GlassesType getGlasses()
Get the glasses property: Glasses type if any of the face.
Returns:
getHair
public HairProperties getHair()
Get the hair property: Properties describing hair attributes.
Returns:
getHeadPose
public HeadPose getHeadPose()
Get the headPose property: 3-D roll/yaw/pitch angles for face direction.
Returns:
getMask
public MaskProperties getMask()
Get the mask property: Properties describing the presence of a mask on a given face.
Returns:
getNoise
public NoiseProperties getNoise()
Get the noise property: Properties describing noise level of the image.
Returns:
getOcclusion
public OcclusionProperties getOcclusion()
Get the occlusion property: Properties describing occlusions on a given face.
Returns:
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:
getSmile
public Double getSmile()
Get the smile property: Smile intensity, a number between [0,1].
Returns: