Word Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. Word
- com.
public class Word
An object representing a recognized word.
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Double> |
boundingBox()
Get the boundingBox value. |
double |
confidence()
Get the confidence value. |
String |
text()
Get the text value. |
Word |
withBoundingBox(List<Double> boundingBox)
Set the boundingBox value. |
Word |
withConfidence(double confidence)
Set the confidence value. |
Word |
withText(String text)
Set the text value. |
Method Details
boundingBox
public List
Get the boundingBox value.
Returns:
confidence
public double confidence()
Get the confidence value.
Returns:
text
public String text()
Get the text value.
Returns:
withBoundingBox
public Word withBoundingBox(List
Set the boundingBox value.
Parameters:
Returns:
withConfidence
public Word withConfidence(double confidence)
Set the confidence value.
Parameters:
Returns:
withText
public Word withText(String text)
Set the text value.
Parameters:
Returns:
Applies to
Azure SDK for Java