extractText method

Future<String> extractText (
  1. String imagePath,
  2. {String language}
)

Implementation

static Future<String> extractText(String imagePath, {String language}) async {
  assert(await File(imagePath).exists(), true);
  final String tessData = await _loadTessData();
  final String extractText = await _channel.invokeMethod('extractText', <String, dynamic>{
    'imagePath': imagePath,
    'tessData': tessData,
    'language': language,
  });
  return extractText;
}