MLTextAnalyzerSetting class

Constructors

MLTextAnalyzerSetting.local({required String path, int ocrMode = ocrDetectMode, String language = 'zh'})
Constructor for on device text recognition.
factory
MLTextAnalyzerSetting.remote({required String path, String borderType = arc, List<String> languageList = const <String>[], int textDensityScene = ocrCompactScene})
Constructor for on cloud text recognition.
factory

Properties

borderType String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isRemote bool
getter/setter pair
language String?
getter/setter pair
languageList List<String?>
getter/setter pair
ocrMode int?
getter/setter pair
path String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textDensityScene int?
getter/setter pair

Methods

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

Operators

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

Constants

arc → const String
Text bounding box that is a polygon.
ngon → const String
Text bounding box that is a quadrilateral.
ocrCompactScene → const int
Dense text type, such as user instructions.
ocrDetectMode → const int
Independent detection mode. Each supplied image is detected independently. This mode applies to single image detection.
ocrLooseScene → const int
Sparse text type, such as business cards.
ocrTrackingMode → const int
Tracking mode. The detection result of the preceding frame is used as the basis to quickly detect the text position in the image. This mode applies to video stream text detection.