Package io.scanbot.sdk.ocr.model
Class OcrElement
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class OcrElement implements Parcelable
Base class for units of text, e.g. glyphs, words, lines, blocks, pages.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetText()The recognized text. abstract DoublegetConfidence()Text confidence. abstract List<PointF>getRoi()Quad where the text was found in image coordinates. abstract Stringget_type()abstract OcrElementclone()abstract JSONObjecttoJson(ToJsonConfiguration config)final static OcrElementinvoke(Map<String, Object> source)final static Glyphglyph(String text, Double confidence, List<PointF> roi)final static Wordword(String text, Double confidence, List<PointF> roi, List<Glyph> glyphs)final static Lineline(String text, Double confidence, List<PointF> roi, List<Word> words)final static Blockblock(String text, Double confidence, List<PointF> roi, List<Line> lines)final static Pagepage(String text, Double confidence, List<PointF> roi, List<Block> blocks)-
-
Method Detail
-
getConfidence
abstract Double getConfidence()
Text confidence. Range is 0-1.
-
getRoi
abstract List<PointF> getRoi()
Quad where the text was found in image coordinates. The order of the points is clockwise starting from the top left.
-
clone
abstract OcrElement clone()
-
toJson
abstract JSONObject toJson(ToJsonConfiguration config)
-
invoke
final static OcrElement invoke(Map<String, Object> source)
-
-
-
-