Package io.scanbot.sdk.ocr
Class OcrElement
- java.lang.Object
-
- io.scanbot.sdk.ocr.OcrElement
-
-
Constructor Summary
Constructors Constructor Description OcrElement(java.lang.String text, double confidence, java.util.List<PointF> roi)Constructs OcrElement with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetConfidence()Getter for confidence field.java.util.List<PointF>getRoi()Getter for roi field.java.lang.StringgetText()Getter for text field.
-
-
-
Constructor Detail
-
OcrElement
public OcrElement(java.lang.String text, double confidence, java.util.List<PointF> roi)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 Detail
-
getText
public java.lang.String 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
public java.util.List<PointF> getRoi()
Getter for roi field. See constructor documentation for more information about the field.- Returns:
- roi
-
-