Class ImageCaption
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.ImageCaption
-
public class ImageCaption extends Object
An image caption, i.e. a brief description of what the image depicts.
-
-
Constructor Summary
Constructors Constructor Description ImageCaption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
confidence()
Get the confidence value.String
text()
Get the text value.ImageCaption
withConfidence(double confidence)
Set the confidence value.ImageCaption
withText(String text)
Set the text value.
-
-
-
Method Detail
-
text
public String text()
Get the text value.- Returns:
- the text value
-
withText
public ImageCaption withText(String text)
Set the text value.- Parameters:
text
- the text value to set- Returns:
- the ImageCaption object itself.
-
confidence
public double confidence()
Get the confidence value.- Returns:
- the confidence value
-
withConfidence
public ImageCaption withConfidence(double confidence)
Set the confidence value.- Parameters:
confidence
- the confidence value to set- Returns:
- the ImageCaption object itself.
-
-