FirebaseVisionDocumentText.Word

public static class FirebaseVisionDocumentText.Word extends Object

A single word representation.

Public Method Summary

Rect
getBoundingBox()
Gets the bounding box for the recognized text.
Float
getConfidence()
Gets confidence of the OCR results for the recognized text.
FirebaseVisionDocumentText.RecognizedBreak
getRecognizedBreak()
Gets the recognized break.
List<RecognizedLanguage>
getRecognizedLanguages()
Gets the recognized languages.
List<FirebaseVisionDocumentText.Symbol>
String
getText()
Gets the UTF-8 representation of the recognized text.

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 Rect getBoundingBox ()

Gets the bounding box for the recognized text.

public Float getConfidence ()

Gets confidence of the OCR results for the recognized text.

Returns null if no confidence available. Otherwise, its range is [0.0f, 1.0f].

public FirebaseVisionDocumentText.RecognizedBreak getRecognizedBreak ()

Gets the recognized break.

public List<RecognizedLanguage> getRecognizedLanguages ()

Gets the recognized languages.

public List<FirebaseVisionDocumentText.Symbol> getSymbols ()

Gets the List of FirebaseVisionDocumentText.Symbols in the FirebaseVisionDocumentText.Word. The order of the symbols follows the natural reading order.

public String getText ()

Gets the UTF-8 representation of the recognized text.

Returns an empty string if nothing is found.

Get help quickly with Firebase support. Read our FAQs, Release notes, and guides, ask the community, then get direct support from the Firebase team.

Diperbarui Oct 3, 2024

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

Diperbarui May 4, 2022

Firebase menyediakan fitur dan infrastruktur yang Anda perlukan untuk membuat aplikasi seluler dan web yang lebih baik, menyempurnakan kualitas aplikasi, dan mengembangkan bisnis Anda.

Diperbarui Jul 25, 2024