A block of text (think of it as a paragraph) as deemed by the OCR engine.
| Rect |
getBoundingBox()
Returns the axis-aligned bounding rectangle of the detected text.
|
| Point[] |
getCornerPoints()
Gets the four corner points in clockwise direction starting with top-left.
|
| synchronized List<Text.Line> | |
| String |
getRecognizedLanguage()
Gets prevailing language in the text, if any.
|
| String |
getText()
Gets the recognized text in the
Text.TextBlock.
|
Returns the axis-aligned bounding rectangle of the detected text. If nothing found,
it returns null.
Gets the four corner points in clockwise direction starting with top-left. Due to
the possible perspective distortions, this is not necessarily a rectangle. Parts of the
region could be outside of the image. If nothing found, it returns
null.
Gets an unmodifiable list of Text.Lines
that make up this text block.
Returns an empty list if nothing is found.
Gets prevailing language in the text, if any. The format is in BCP47 (e.g. "en" or "sr-Latn-BA") or "und" if the language could not be determined.
Gets the recognized text in the Text.TextBlock.
It concatenates text strings from underlying Text.Lines
separated by '\n'.
The recognized text is in reading order for the language. For Latin, this is top to bottom within a TextBlock, and left-to-right within a Line.
Returns an empty string if nothing is found.