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 Stringget_type()StringgetText()The recognized text. DoublegetConfidence()Text confidence. List<PointF>getRoi()Quad where the text was found in image coordinates. final List<Line>getLines()List of lines. JSONObjecttoJson(ToJsonConfiguration config)Blockclone()-
-
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)
-
-
-
-