Package io.scanbot.sdk.textpattern
Class TextPatternScannerResult
java.lang.Object
io.scanbot.sdk.textpattern.TextPatternScannerResult
The result of the text line recognition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGetter for confidence field.Getter for rawText field.Getter for symbolBoxes field.booleanGetter for validationSuccessful field.Getter for wordBoxes field.
-
Constructor Details
-
TextPatternScannerResult
public TextPatternScannerResult(String rawText, List<WordBox> wordBoxes, 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.0`.validationSuccessful- True if both the configured validator (if any) and the configured frame accumulation criteria were satisfied. Default is `false`.
-
TextPatternScannerResult
public TextPatternScannerResult(String rawText, List<WordBox> wordBoxes, 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 Details
-
getRawText
Getter for rawText field. See constructor documentation for more information about the field.- Returns:
- rawText
-
getWordBoxes
Getter for wordBoxes field. See constructor documentation for more information about the field.- Returns:
- wordBoxes
-
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
-