Package-level declarations

Types

Link copied to clipboard

Content validation callback.

Link copied to clipboard

Base class for content validators.

Link copied to clipboard
data class CustomContentValidator(var allowedCharacters: String = "", var callback: ContentValidationCallback? = null) : ContentValidator, Parcelable

Custom content validator.

Link copied to clipboard
data class DefaultContentValidator(var allowedCharacters: String = "") : ContentValidator, Parcelable

Default content validator. Accepts only non-empty strings.

Link copied to clipboard
Link copied to clipboard
data class PatternContentValidator(var allowedCharacters: String = "", var pattern: String, var matchSubstring: Boolean = false, var patternGrammar: PatternGrammar = PatternGrammar.WILDCARD) : ContentValidator, Parcelable

Pattern content validator.

Link copied to clipboard

Grammar of pattern matching.

Link copied to clipboard
data class SymbolBox(val symbol: String, val boundingRect: Rect, val recognitionConfidence: Double) : Parcelable

Structure containing recognized symbol text and bounds.

Link copied to clipboard

Component to scan image, recognize text on it and validate the recognized text.

Link copied to clipboard
data class TextPatternScannerConfiguration(var ocrResolutionLimit: Int = 0, var maximumNumberOfAccumulatedFrames: Int = 3, var minimumNumberOfRequiredFramesWithEqualScanningResult: Int = 2, var validator: ContentValidator = DefaultContentValidator( )) : Parcelable

Configuration for the text pattern scanner.

Link copied to clipboard

Performs pattern text scanning on camera preview frames. Outputs results via TextPatternScannerFrameHandler.ResultHandler.

Link copied to clipboard
data class TextPatternScannerResult(val rawText: String, val wordBoxes: List<WordBox>, val symbolBoxes: List<SymbolBox>, val confidence: Double = 0.0, val validationSuccessful: Boolean = false) : Parcelable

The result of the text line recognition.

Link copied to clipboard
data class WordBox(val text: String, val boundingRect: Rect, val recognitionConfidence: Double = 0.0) : Parcelable

Structure containing recognized word text and bounds.