MethodChannelFlutterOcrSdk class

An implementation of FlutterOcrSdkPlatform that uses method channels.

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

getPlatformVersion() Future<String?>
override
init(String key) Future<int?>
Initialize the SDK
override
loadAssetBytes(String path) Future<ByteData>
Retrieve a binary resource from the asset bundle as a data stream.
loadAssetString(String path) Future<String>
Retrieve a string from the asset bundle.
loadModel() Future<int?>
Load the whole model by folder.
override
loadModelFiles(String name, Uint8List prototxtBuffer, Uint8List txtBuffer, Uint8List characterModelBuffer) Future<int?>
Load custom model files. Returns a String containing the OCR results.
loadTemplate(String template) Future<int?>
Load s template file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recognizeByBuffer(Uint8List bytes, int width, int height, int stride, int format) Future<List<List<MrzLine>>?>
Do OCR by image buffer. Returns a List<List<MrzLine>> containing the OCR results.
override
recognizeByFile(String filename) Future<List<List<MrzLine>>?>
Do OCR by file. Returns a List<List<MrzLine>> containing the OCR results.
override
toString() String
A string representation of this object.
inherited

Operators

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