FirebaseVisionDocumentText.Paragraph
Stay organized with collections
Save and categorize content based on your preferences.
A structural unit of text representing a number of words in certain order.
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 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].
Gets the recognized break.
Gets the recognized languages.
public String getText ()
Gets the UTF-8 representation of the recognized text.
Returns an empty string if nothing is found.
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,["# FirebaseVisionDocumentText.Paragraph\n\npublic static class **FirebaseVisionDocumentText.Paragraph** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nA structural unit of text representing a number of words in certain order. \n\n### Public Method Summary\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Rect](//developer.android.com/reference/android/graphics/Rect.html) | [getBoundingBox](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Paragraph#getBoundingBox())() Gets the bounding box for the recognized text. |\n| [Float](//developer.android.com/reference/java/lang/Float.html) | [getConfidence](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Paragraph#getConfidence())() Gets confidence of the OCR results for the recognized text. |\n| [FirebaseVisionDocumentText.RecognizedBreak](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.RecognizedBreak) | [getRecognizedBreak](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Paragraph#getRecognizedBreak())() Gets the recognized break. |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[RecognizedLanguage](/docs/reference/android/com/google/firebase/ml/vision/text/RecognizedLanguage)\\\u003e | [getRecognizedLanguages](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Paragraph#getRecognizedLanguages())() Gets the recognized languages. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getText](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Paragraph#getText())() Gets the UTF-8 representation of the recognized text. |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[FirebaseVisionDocumentText.Word](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Word)\\\u003e | [getWords](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Paragraph#getWords())() Gets the [List](//developer.android.com/reference/java/util/List.html) of [FirebaseVisionDocumentText.Word](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Word)s in the [FirebaseVisionDocumentText.Paragraph](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Paragraph). |\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 [Rect](//developer.android.com/reference/android/graphics/Rect.html) **getBoundingBox** ()\n\nGets the bounding box for the recognized text. \n\n#### public [Float](//developer.android.com/reference/java/lang/Float.html) **getConfidence** ()\n\nGets confidence of the OCR results for the recognized text.\n\nReturns null if no confidence available. Otherwise, its range is \\[0.0f, 1.0f\\]. \n\n#### public [FirebaseVisionDocumentText.RecognizedBreak](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.RecognizedBreak) **getRecognizedBreak** ()\n\nGets the recognized break. \n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[RecognizedLanguage](/docs/reference/android/com/google/firebase/ml/vision/text/RecognizedLanguage)\\\u003e\n**getRecognizedLanguages** ()\n\nGets the recognized languages. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getText** ()\n\nGets the UTF-8 representation of the recognized text.\n\nReturns an empty string if nothing is found. \n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[FirebaseVisionDocumentText.Word](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Word)\\\u003e\n**getWords** ()\n\nGets the [List](//developer.android.com/reference/java/util/List.html) of\n[FirebaseVisionDocumentText.Word](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Word)s in the [FirebaseVisionDocumentText.Paragraph](/docs/reference/android/com/google/firebase/ml/vision/document/FirebaseVisionDocumentText.Paragraph).\n\nReturns an empty list if no `Word` is found."]]