public class OcrResultBlock
Part of the optical character recognitions result. Each block represents a text paragraph, a text line or a word and contains information about it, like the found text, the bounding box, where in the image the paragraph/line/word can be found, the confidence value and the type.
| Modifier and Type | Field and Description |
|---|---|
OcrResultBlock.OcrResultBlockType |
blockType
The type of the block. OcrResultBlockType.
|
android.graphics.RectF |
boundingBox
The bounding box of the receiver in normalized unit coordinate space Left, Top:(0.0, 0.0) - Right, Bottom(1.0, 1.0). Use the
OcrResultBlock#boundingBoxWithImageSize method to get the bounding box in absolute image coordinates. |
android.graphics.Rect |
boundingBoxWithImageSize
The bounding box of the receiver in absolute image coordinate system.
|
java.lang.Float |
confidenceValue
The confidence value describes how confident the OCR engine was when detecting the letters and words. Ranges from 0.0 (not confident) to 100.0 (very confident).
|
java.lang.String |
text
The recognized text within the receivers bounding box.
|
| Constructor and Description |
|---|
OcrResultBlock() |
public java.lang.String text
The recognized text within the receivers bounding box.
public android.graphics.RectF boundingBox
The bounding box of the receiver in normalized unit coordinate space Left, Top:(0.0, 0.0) - Right, Bottom(1.0, 1.0). Use the OcrResultBlock#boundingBoxWithImageSize method to get the bounding box in absolute image coordinates.
public android.graphics.Rect boundingBoxWithImageSize
The bounding box of the receiver in absolute image coordinate system.
public java.lang.Float confidenceValue
The confidence value describes how confident the OCR engine was when detecting the letters and words. Ranges from 0.0 (not confident) to 100.0 (very confident).
public OcrResultBlock.OcrResultBlockType blockType
The type of the block. OcrResultBlockType.