FirebaseVisionDocumentText.Paragraph

public static class FirebaseVisionDocumentText.Paragraph extends Object

A structural unit of text representing a number of words in certain order.

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.
String
getText()
Gets the UTF-8 representation of the recognized text.
List<FirebaseVisionDocumentText.Word>

Inherited Method Summary

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 String getText ()

Gets the UTF-8 representation of the recognized text.

Returns an empty string if nothing is found.

public List<FirebaseVisionDocumentText.Word> getWords ()

Gets the List of FirebaseVisionDocumentText.Words in the FirebaseVisionDocumentText.Paragraph.

Returns an empty list if no Word is found.