FirebaseVisionCloudText.Block

public static class FirebaseVisionCloudText.Block extends Object

A logical element on the page. A FirebaseVisionCloudText.Block could contain multiple FirebaseVisionCloudText.Paragraphs.

Public Method Summary

Rect
getBoundingBox()
Gets the bounding box for the block.
float
getConfidence()
Gets confidence of the OCR results for the block.
List<FirebaseVisionCloudText.Paragraph>
FirebaseVisionCloudText.TextProperty
getTextProperty()
Gets additional information detected for the block.

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 block.

public float getConfidence ()

Gets confidence of the OCR results for the block. Range [0.0f, 1.0f].

public List<FirebaseVisionCloudText.Paragraph> getParagraphs ()

Gets the List of FirebaseVisionCloudText.Paragraphs in the FirebaseVisionCloudText.Block.

Returns an empty list if no Paragraph is found.

public FirebaseVisionCloudText.TextProperty getTextProperty ()

Gets additional information detected for the block.