Package io.scanbot.sdk.textpattern
Class TextPatternScannerResult
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TextPatternScannerResult implements Parcelable
The result of the text line recognition.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
rawText
private final List<WordBox>
wordBoxes
private final List<SymbolBox>
symbolBoxes
private final Double
confidence
private final Boolean
validationSuccessful
-
Constructor Summary
Constructors Constructor Description TextPatternScannerResult(Map<String, Object> source)
TextPatternScannerResult(JSONObject json)
TextPatternScannerResult(String rawText, List<WordBox> wordBoxes, List<SymbolBox> symbolBoxes, Double confidence, Boolean validationSuccessful)
-
Method Summary
Modifier and Type Method Description final String
getRawText()
Raw recognized string. final List<WordBox>
getWordBoxes()
Boxes for each recognized word. final List<SymbolBox>
getSymbolBoxes()
Boxes for each recognized symbol. final Double
getConfidence()
Confidence of the recognition. final Boolean
getValidationSuccessful()
Whether the validation was successful. final JSONObject
toJson(ToJsonConfiguration config)
final TextPatternScannerResult
clone()
-
-
Constructor Detail
-
TextPatternScannerResult
TextPatternScannerResult(JSONObject json)
-
-
Method Detail
-
getRawText
final String getRawText()
Raw recognized string.
-
getWordBoxes
final List<WordBox> getWordBoxes()
Boxes for each recognized word.
-
getSymbolBoxes
final List<SymbolBox> getSymbolBoxes()
Boxes for each recognized symbol.
-
getConfidence
final Double getConfidence()
Confidence of the recognition.
Default is 0.0
-
getValidationSuccessful
final Boolean getValidationSuccessful()
Whether the validation was successful.
Default is false
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final TextPatternScannerResult clone()
-
-
-
-