FirebaseVisionText
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-08-08 UTC.
[null,null,["Last updated 2020-08-08 UTC."],[],[],null,["# FirebaseVisionText\n\npublic class **FirebaseVisionText** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nA hierarchical representation of texts.\n\nA [FirebaseVisionText](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText)\ncontains a list of [FirebaseVisionText.TextBlock](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.TextBlock), and a [FirebaseVisionText.TextBlock](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.TextBlock) contains a list of [FirebaseVisionText.Line](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.Line)\nwhich is composed of a list of [FirebaseVisionText.Element](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.Element). \n\n### Nested Class Summary\n\n|-------|---|---|---------------------------------------------------------------------------------------------------|\n| class | [FirebaseVisionText.Element](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.Element) || Roughly equivalent to a space-separated \"word\" in most Latin languages, or a character in others. |\n| class | [FirebaseVisionText.Line](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.Line) || Represents a line of text. |\n| class | [FirebaseVisionText.TextBlock](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.TextBlock) || A block of text (think of it as a paragraph) as deemed by the OCR engine. |\n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](//developer.android.com/reference/java/lang/String.html) | [getText](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText#getText())() Retrieve the recognized text as a string. |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[FirebaseVisionText.TextBlock](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.TextBlock)\\\u003e | [getTextBlocks](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText#getTextBlocks())() Gets an unmodifiable list of [FirebaseVisionText.TextBlock](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.TextBlock), which is a block of text and can be further decomposed to a list of [FirebaseVisionText.Line](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.Line). |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getText** ()\n\nRetrieve the recognized text as a string. \n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[FirebaseVisionText.TextBlock](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.TextBlock)\\\u003e\n**getTextBlocks** ()\n\nGets an unmodifiable list of [FirebaseVisionText.TextBlock](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.TextBlock), which is a block of text and can be further\ndecomposed to a list of [FirebaseVisionText.Line](/docs/reference/android/com/google/firebase/ml/vision/text/FirebaseVisionText.Line)."]]