FlutterOcrSdkWeb class
A web implementation of the FlutterOcrSdkPlatform of the FlutterOcrSdk plugin.
- Inheritance
-
- Object
- PlatformInterface
- FlutterOcrSdkPlatform
- FlutterOcrSdkWeb
Constructors
- FlutterOcrSdkWeb.new()
- Constructs a FlutterOcrSdkWeb
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
String key) → Future< int?> -
Initializes the OCR SDK using the provided
key
.override -
loadModel(
{ModelType modelType = ModelType.mrz}) → Future< int?> -
Loads the OCR model for the specified
modelType
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recognizeBuffer(
Uint8List bytes, int width, int height, int stride, int format, int rotation) → Future< List< List< ?>OcrLine> > -
Performs OCR on an image buffer.
override
-
recognizeFile(
String filename) → Future< List< List< ?>OcrLine> > -
Performs OCR on an image file specified by
filename
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void