extractText static method

dynamic extractText(
  1. String imagePath, {
  2. String? language,
  3. Map? args,
})

image to text

String _ocrText = await FlutterTesseractOcr.extractText(url, language: langs, args: {
   "preserve_interword_spaces": "1",});

Implementation

static extractText(String imagePath, {String? language, Map? args}) async {
  var promiseData =
      _extractText(imagePath, jsify({"language": language, "args": args!}));
  var rtn = await promiseToFuture(promiseData);
  return rtn;
}