Class Word
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.Word
-
public class Word extends Object
An object representing a recognized word.
-
-
Constructor Summary
Constructors Constructor Description Word()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 Detail
-
boundingBox
public List<Double> boundingBox()
Get the boundingBox value.- Returns:
- the boundingBox value
-
withBoundingBox
public Word withBoundingBox(List<Double> boundingBox)
Set the boundingBox value.- Parameters:
boundingBox
- the boundingBox value to set- Returns:
- the Word object itself.
-
text
public String text()
Get the text value.- Returns:
- the text value
-
withText
public Word withText(String text)
Set the text value.- Parameters:
text
- the text value to set- Returns:
- the Word object itself.
-
confidence
public double confidence()
Get the confidence value.- Returns:
- the confidence value
-
withConfidence
public Word withConfidence(double confidence)
Set the confidence value.- Parameters:
confidence
- the confidence value to set- Returns:
- the Word object itself.
-
-