CaptionResult Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. CaptionResult
- com.
Implements
public final class CaptionResult
implements JsonSerializable<CaptionResult>
Represents a generated phrase that describes the content of the whole image.
Modifier and Type | Method and Description |
---|---|
static
Caption |
from Reads an instance of Caption |
double |
get Get the confidence property: A score, in the range of 0 to 1 (inclusive), representing the confidence that this description is accurate. |
String |
get Get the text property: The text of the caption. |
Json |
to |
Methods inherited from java.lang.Object
fromJson
public static CaptionResult fromJson(JsonReader jsonReader)
Reads an instance of CaptionResult 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 description is accurate. Higher values indicating higher confidence.
Returns:
getText
public String getText()
Get the text property: The text of the caption.
Returns:
toJson
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: