DenseCaption Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. DenseCaption
- com.
Implements
public final class DenseCaption
implements JsonSerializable<DenseCaption>
Represents a generated phrase that describes the content of the whole image or a region in the image.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Dense |
fromJson(JsonReader jsonReader)
Reads an instance of Dense |
Image |
getBoundingBox()
Get the bounding |
double |
getConfidence()
Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this description is accurate. |
String |
getText()
Get the text property: The text of the caption. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DenseCaption fromJson(JsonReader jsonReader)
Reads an instance of DenseCaption from the JsonReader.
Parameters:
Returns:
Throws:
getBoundingBox
public ImageBoundingBox getBoundingBox()
Get the boundingBox property: The image region of which this caption applies.
Returns:
getConfidence
public double getConfidence()
Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this description is accurate. Higher values indicating higher confidence.
Returns:
getText
public String getText()
Get the text property: The text of the caption.
Returns:
toJson
Applies to
Azure SDK for Java