ImageCaption Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. ImageCaption
- com.
public class ImageCaption
An image caption, i.e. a brief description of what the image depicts.
Method Summary
Modifier and Type | Method and Description |
---|---|
double |
confidence()
Get the confidence value. |
String |
text()
Get the text value. |
Image |
withConfidence(double confidence)
Set the confidence value. |
Image |
withText(String text)
Set the text value. |
Method Details
confidence
public double confidence()
Get the confidence value.
Returns:
the confidence value
text
public String text()
Get the text value.
Returns:
the text value
withConfidence
public ImageCaption withConfidence(double confidence)
Set the confidence value.
Parameters:
confidence
- the confidence value to set
Returns:
the ImageCaption object itself.
withText
public ImageCaption withText(String text)
Set the text value.
Parameters:
text
- the text value to set
Returns:
the ImageCaption object itself.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
Azure SDK for Java