Package io.scanbot.sdk.ocr
Class OcrElement
java.lang.Object
io.scanbot.sdk.ocr.OcrElement
Base class for units of text, e.g. glyphs, words, lines, blocks, pages.
-
Constructor Summary
ConstructorsConstructorDescriptionOcrElement(String text, double confidence, List<PointF> roi) Constructs OcrElement with the given params. -
Method Summary
-
Constructor Details
-
OcrElement
Constructs OcrElement with the given params.- Parameters:
text- The recognized text.confidence- Text confidence. Range is [0-1].roi- Quad where the text was found in image coordinates. The order of the points is clockwise starting from the top left.
-
-
Method Details
-
getText
Getter for text field. See constructor documentation for more information about the field.- Returns:
- text
-
getConfidence
public double getConfidence()Getter for confidence field. See constructor documentation for more information about the field.- Returns:
- confidence
-
getRoi
Getter for roi field. See constructor documentation for more information about the field.- Returns:
- roi
-