Package io.scanbot.sdk.textpattern
Class WordBox
java.lang.Object
io.scanbot.sdk.textpattern.WordBox
Structure containing recognized word text and bounds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for boundingRect field.doubleGetter for recognitionConfidence field.getText()Getter for text field.
-
Constructor Details
-
WordBox
Constructs WordBox with the given params.- Parameters:
text- Recognized word text.boundingRect- Bounding rectangle of the recognized word.recognitionConfidence- Confidence of the recognition. Default is `0.0`.
-
WordBox
Constructs WordBox with default parameters.- Parameters:
text- Recognized word text.boundingRect- Bounding rectangle of the recognized word.
-
-
Method Details
-
getText
Getter for text field. See constructor documentation for more information about the field.- Returns:
- text
-
getBoundingRect
Getter for boundingRect field. See constructor documentation for more information about the field.- Returns:
- boundingRect
-
getRecognitionConfidence
public double getRecognitionConfidence()Getter for recognitionConfidence field. See constructor documentation for more information about the field.- Returns:
- recognitionConfidence
-