A hierarchical representation of texts.
A FirebaseVisionText
contains a list of
FirebaseVisionText.TextBlock, and a
FirebaseVisionText.TextBlock contains a list of FirebaseVisionText.Line
which is composed of a list of FirebaseVisionText.Element.
Nested Class Summary
| class | FirebaseVisionText.Element | Roughly equivalent to a space-separated "word" in most Latin languages, or a character in others. | |
| class | FirebaseVisionText.Line | Represents a line of text. | |
| class | FirebaseVisionText.TextBlock | A block of text (think of it as a paragraph) as deemed by the OCR engine. | |
Public Method Summary
| String |
getText()
Retrieve the recognized text as a string.
|
| List<FirebaseVisionText.TextBlock> |
getTextBlocks()
Gets an unmodifiable list of
FirebaseVisionText.TextBlock, which is a block of text and can be
further decomposed to a list of
FirebaseVisionText.Line.
|
Inherited Method Summary
Public Methods
public String getText ()
Retrieve the recognized text as a string.
public List<FirebaseVisionText.TextBlock> getTextBlocks ()
Gets an unmodifiable list of
FirebaseVisionText.TextBlock, which is a block of text and can be further
decomposed to a list of
FirebaseVisionText.Line.