extractTextFromImage method

Future<ApiResponse> extractTextFromImage(
  1. File file, {
  2. String language = 'eng',
})

Extract text from an image using OCR

file Image file to process language OCR language

Implementation

Future<ApiResponse> extractTextFromImage(
  File file, {
  String language = 'eng',
}) async {
  return client.uploadFile(
    '/api/ocr',
    'file',
    file,
    fields: {'language': language},
  );
}