Package io.scanbot.sdk.textpattern
Class TextPatternScannerResult
- java.lang.Object
-
- io.scanbot.sdk.textpattern.TextPatternScannerResult
-
public class TextPatternScannerResult extends java.lang.ObjectThe result of the text line recognition.
-
-
Constructor Summary
Constructors Constructor Description TextPatternScannerResult(java.lang.String rawText, java.util.List<WordBox> wordBoxes, java.util.List<SymbolBox> symbolBoxes)Constructs TextPatternScannerResult with default parameters.TextPatternScannerResult(java.lang.String rawText, java.util.List<WordBox> wordBoxes, java.util.List<SymbolBox> symbolBoxes, double confidence, boolean validationSuccessful)Constructs TextPatternScannerResult with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetConfidence()Getter for confidence field.java.lang.StringgetRawText()Getter for rawText field.java.util.List<SymbolBox>getSymbolBoxes()Getter for symbolBoxes field.booleangetValidationSuccessful()Getter for validationSuccessful field.java.util.List<WordBox>getWordBoxes()Getter for wordBoxes field.
-
-
-
Constructor Detail
-
TextPatternScannerResult
public TextPatternScannerResult(java.lang.String rawText, java.util.List<WordBox> wordBoxes, java.util.List<SymbolBox> symbolBoxes, double confidence, boolean validationSuccessful)Constructs TextPatternScannerResult with the given params.- Parameters:
rawText- Raw recognized string.wordBoxes- Boxes for each recognized word.symbolBoxes- Boxes for each recognized symbol.confidence- Confidence of the recognition. Default is 0.0validationSuccessful- Whether the validation was successful. Default is false
-
TextPatternScannerResult
public TextPatternScannerResult(java.lang.String rawText, java.util.List<WordBox> wordBoxes, java.util.List<SymbolBox> symbolBoxes)Constructs TextPatternScannerResult with default parameters.- Parameters:
rawText- Raw recognized string.wordBoxes- Boxes for each recognized word.symbolBoxes- Boxes for each recognized symbol.
-
-
Method Detail
-
getRawText
public java.lang.String getRawText()
Getter for rawText field. See constructor documentation for more information about the field.- Returns:
- rawText
-
getWordBoxes
public java.util.List<WordBox> getWordBoxes()
Getter for wordBoxes field. See constructor documentation for more information about the field.- Returns:
- wordBoxes
-
getSymbolBoxes
public java.util.List<SymbolBox> getSymbolBoxes()
Getter for symbolBoxes field. See constructor documentation for more information about the field.- Returns:
- symbolBoxes
-
getConfidence
public double getConfidence()
Getter for confidence field. See constructor documentation for more information about the field.- Returns:
- confidence
-
getValidationSuccessful
public boolean getValidationSuccessful()
Getter for validationSuccessful field. See constructor documentation for more information about the field.- Returns:
- validationSuccessful
-
-