Share via


BlurProperties Class

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

Implements

public final class BlurProperties
implements JsonSerializable<BlurProperties>

Properties describing any presence of blur within the image.

Method Summary

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

Reads an instance of BlurProperties from the JsonReader.

BlurLevel getBlurLevel()

Get the blurLevel property: An enum value indicating level of blurriness.

double getValue()

Get the value property: A number indicating level of blurriness ranging from 0 to 1.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BlurProperties fromJson(JsonReader jsonReader)

Reads an instance of BlurProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getBlurLevel

public BlurLevel getBlurLevel()

Get the blurLevel property: An enum value indicating level of blurriness.

Returns:

the blurLevel value.

getValue

public double getValue()

Get the value property: A number indicating level of blurriness ranging from 0 to 1.

Returns:

the value value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to