StringResult

data class StringResult(val values: Array<String>, val locations: Array<Rectangle?>, val sides: Array<ScanningSide?>)

Represents the multi-alphabet string result extracted from the OCR. The result contains the extracted strings, their locations, and the sides of the extracted strings.

Constructors

Link copied to clipboard
constructor(values: Array<String>, locations: Array<Rectangle?>, sides: Array<ScanningSide?>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Array of locations of the extracted strings.

Link copied to clipboard

Array of sides of the extracted strings.

Link copied to clipboard

Array of extracted strings for all alphabets.

Functions

Link copied to clipboard
fun location(alphabetType: AlphabetType): Rectangle?

Returns the location of the extracted string for the given alphabet type.

Link copied to clipboard
fun side(alphabetType: AlphabetType): ScanningSide?

Returns the side of the extracted string for the given alphabet type.

Link copied to clipboard
fun value(alphabetType: AlphabetType): String

Returns the extracted string for the given alphabet type.