DetectedTag Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. DetectedTag
- com.
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
Detected |
fromJson(JsonReader jsonReader)
Reads an instance of Detected |
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. |
Json |
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:
Returns:
Throws:
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:
getName
public String getName()
Get the name property: Name of the entity.
Returns:
toJson
Applies to
Azure SDK for Java