Package io.scanbot.sdk.ocr.model
Class Block
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Block extends OcrElement implements Parcelable
Represents a single block, e.g. a paragraph. A block is made up of lines.
-
-
Method Summary
Modifier and Type Method Description String
get_type()
String
getText()
The recognized text. Double
getConfidence()
Text confidence. List<PointF>
getRoi()
Quad where the text was found in image coordinates. final List<Line>
getLines()
List of lines. JSONObject
toJson(ToJsonConfiguration config)
Block
clone()
-
-
Method Detail
-
getConfidence
Double getConfidence()
Text confidence. Range is 0-1.
-
getRoi
List<PointF> getRoi()
Quad where the text was found in image coordinates. The order of the points is clockwise starting from the top left.
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
-
-
-