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 StringrawTextprivate final List<WordBox>wordBoxesprivate final List<SymbolBox>symbolBoxesprivate final Doubleconfidenceprivate final BooleanvalidationSuccessful
-
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 StringgetRawText()Raw recognized string. final List<WordBox>getWordBoxes()Boxes for each recognized word. final List<SymbolBox>getSymbolBoxes()Boxes for each recognized symbol. final DoublegetConfidence()Confidence of the recognition. final BooleangetValidationSuccessful()Whether the validation was successful. final JSONObjecttoJson(ToJsonConfiguration config)final TextPatternScannerResultclone()-
-
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()
-
-
-
-