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.

ML Kit for Firebase menyediakan solusi ML siap pakai bagi developer aplikasi. Aplikasi baru harus menggunakan library ML Kit mandiri untuk ML di perangkat dan Firebase ML untuk ML berbasis cloud.

Diperbarui Feb 26, 2025

Dengan Firebase ML, Anda dapat menambahkan fitur machine learning yang canggih ke aplikasi Anda dengan API yang siap pakai dan dukungan untuk deployment model kustom.

Diperbarui Feb 26, 2025

ML Kit for Firebase menyediakan solusi ML siap pakai bagi developer aplikasi. Aplikasi baru harus menggunakan library ML Kit mandiri untuk ML di perangkat dan Firebase ML untuk ML berbasis cloud.

Diperbarui Feb 26, 2025