loadModelFiles method

Future<int?> loadModelFiles(
  1. String name,
  2. Uint8List prototxtBuffer,
  3. Uint8List txtBuffer,
  4. Uint8List characterModelBuffer,
)

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,
  });
}