MethodChannelFlutterOcrSdk class

A FlutterOcrSdkPlatform implementation that communicates with the native platform using a MethodChannel.

This class provides methods for initializing the OCR SDK, performing OCR from image buffers or file paths, and loading OCR models based on type.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
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