DetectedTag Class

  • java.lang.Object
    • com.azure.ai.vision.imageanalysis.models.DetectedTag

Implements

public final class DetectedTag
implements JsonSerializable<DetectedTag>

A content entity observation in the image. A tag can be a physical object, living being, scenery, or action that appear in the image.

Method Summary

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

Reads an instance of DetectedTag from the JsonReader.

double getConfidence()

Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this entity was observed.

String getName()

Get the name property: Name of the entity.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DetectedTag fromJson(JsonReader jsonReader)

Reads an instance of DetectedTag from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getConfidence

public double getConfidence()

Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this entity was observed. Higher values indicating higher confidence.

Returns:

the confidence value.

getName

public String getName()

Get the name property: Name of the entity.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to