TextRecognitionScript enum

Script model used by the platform OCR engines.

On Android this selects the ML Kit text recognizer. On iOS, when PlatformTextRecognizer.recognizeText is called without explicit languages, the script is mapped to default Vision language hints.

Inheritance
Available extensions

Values

latin → const TextRecognitionScript

Latin alphabet languages (English, French, Spanish, etc.).

chinese → const TextRecognitionScript

Chinese characters (Simplified and Traditional).

devanagari → const TextRecognitionScript

Devanagari script (Hindi, Marathi, etc.). Android only.

japanese → const TextRecognitionScript

Japanese characters.

korean → const TextRecognitionScript

Korean characters.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<TextRecognitionScript>
A constant List of the values in this enum, in order of their declaration.