loadModelFiles method
Load custom model files. Returns a String containing the OCR results.
Implementation
Future<int?> loadModelFiles(String name, Uint8List prototxtBuffer,
Uint8List txtBuffer, Uint8List characterModelBuffer) async {
return await methodChannel.invokeMethod('loadModelFiles', {
'name': name,
'prototxtBuffer': prototxtBuffer,
'txtBuffer': txtBuffer,
'characterModelBuffer': characterModelBuffer,
});
}