FirebaseVisionText

public class FirebaseVisionText extends Object

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

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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.

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Aug 8, 2020