init method

Future<int> init(
  1. String path,
  2. String key
)

Configure Dynamsoft Label Recognizer. Returns 0 if successful.

Implementation

Future<int> init(String path, String key) async {
  LabelRecognizer.engineResourcePath = path;
  LabelRecognizer.license = key;

  _recognizer = await handleThenable(LabelRecognizer.createInstance());

  return 0;
}