Share via


OcclusionProperties Class

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

Implements

public final class OcclusionProperties
implements JsonSerializable<OcclusionProperties>

Properties describing occlusions on a given face.

Method Summary

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

Reads an instance of OcclusionProperties from the JsonReader.

boolean isEyeOccluded()

Get the eyeOccluded property: A boolean value indicating whether eyes are occluded.

boolean isForeheadOccluded()

Get the foreheadOccluded property: A boolean value indicating whether forehead is occluded.

boolean isMouthOccluded()

Get the mouthOccluded property: A boolean value indicating whether the mouth is occluded.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static OcclusionProperties fromJson(JsonReader jsonReader)

Reads an instance of OcclusionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

isEyeOccluded

public boolean isEyeOccluded()

Get the eyeOccluded property: A boolean value indicating whether eyes are occluded.

Returns:

the eyeOccluded value.

isForeheadOccluded

public boolean isForeheadOccluded()

Get the foreheadOccluded property: A boolean value indicating whether forehead is occluded.

Returns:

the foreheadOccluded value.

isMouthOccluded

public boolean isMouthOccluded()

Get the mouthOccluded property: A boolean value indicating whether the mouth is occluded.

Returns:

the mouthOccluded value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to