Package io.scanbot.sdk.textpattern
Class WordBox
- java.lang.Object
-
- io.scanbot.sdk.textpattern.WordBox
-
public class WordBox extends java.lang.ObjectStructure containing recognized word text and bounds.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RectanglegetBoundingRect()Getter for boundingRect field.doublegetRecognitionConfidence()Getter for recognitionConfidence field.java.lang.StringgetText()Getter for text field.
-
-
-
Constructor Detail
-
WordBox
public WordBox(java.lang.String text, Rectangle boundingRect, double recognitionConfidence)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
public WordBox(java.lang.String text, Rectangle boundingRect)Constructs WordBox with default parameters.- Parameters:
text- Recognized word text.boundingRect- Bounding rectangle of the recognized word.
-
-
Method Detail
-
getText
public java.lang.String getText()
Getter for text field. See constructor documentation for more information about the field.- Returns:
- text
-
getBoundingRect
public Rectangle 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
-
-