public class OcrResultBlock
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OcrResultBlock.OcrResultBlockType
Represents block types for a text paragraph, a text line or a word.
|
| Modifier and Type | Field and Description |
|---|---|
OcrResultBlock.OcrResultBlockType |
blockType
The type of the block.
|
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).
|
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.
|
java.lang.String |
text
The recognized text within the receivers bounding box.
|
| Constructor and Description |
|---|
OcrResultBlock(java.lang.String text,
android.graphics.RectF boundingBox,
android.graphics.Rect boundingBoxWithImageSize,
java.lang.Float confidenceValue,
OcrResultBlock.OcrResultBlockType blockType) |
public final java.lang.String text
public final android.graphics.RectF boundingBox
boundingBoxWithImageSize method to get the bounding box in absolute image coordinates.public final android.graphics.Rect boundingBoxWithImageSize
public final java.lang.Float confidenceValue
public final OcrResultBlock.OcrResultBlockType blockType
OcrResultBlock.OcrResultBlockType.public OcrResultBlock(java.lang.String text,
android.graphics.RectF boundingBox,
android.graphics.Rect boundingBoxWithImageSize,
java.lang.Float confidenceValue,
OcrResultBlock.OcrResultBlockType blockType)