init method

Future<int> init(
  1. String key
)

Configure Dynamsoft Label Recognizer. Returns 0 if successful.

Implementation

Future<int> init(String key) async {
  int ret = 0;

  try {
    LabelRecognizer.license = key;
  } catch (e) {
    print(e);
    ret = -1;
  }

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

  return ret;
}