extractTextFromImage method
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},
);
}