loadModel method
Loads the OCR model for the specified modelType
.
Supported types are ModelType.mrz (default) and ModelType.vin.
Returns 0
on success, or an error code on failure.
Implementation
@override
Future<int?> loadModel({ModelType modelType = ModelType.mrz}) async {
String templateName = "ReadPassportAndId";
if (modelType == ModelType.vin) {
templateName = "ReadVINText";
}
int ret = await methodChannel
.invokeMethod('loadModel', {'template': templateName});
return ret;
}