Share via


MaskProperties Class

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

Implements

public final class MaskProperties
implements JsonSerializable<MaskProperties>

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

Method Summary

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

Reads an instance of MaskProperties from the JsonReader.

MaskType getType()

Get the type property: Type of the mask.

boolean isNoseAndMouthCovered()

Get the noseAndMouthCovered property: A boolean value indicating whether nose and mouth are covered.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static MaskProperties fromJson(JsonReader jsonReader)

Reads an instance of MaskProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MaskProperties 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.

getType

public MaskType getType()

Get the type property: Type of the mask.

Returns:

the type value.

isNoseAndMouthCovered

public boolean isNoseAndMouthCovered()

Get the noseAndMouthCovered property: A boolean value indicating whether nose and mouth are covered.

Returns:

the noseAndMouthCovered value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to