discontinuedPackage flutter_tesseract_ocr has been discontinued and replaced by tesseract_ocr.

getTessdataPath static method

Future<String> getTessdataPath()

getTessdataPath

print(await FlutterTesseractOcr.getTessdataPath())

Implementation

static Future<String> getTessdataPath() async {
  final Directory appDirectory = await getApplicationDocumentsDirectory();
  final String tessdataDirectory = join(appDirectory.path, 'tessdata');
  return tessdataDirectory;
}