barcode_finder: ^0.0.5
permission_handler: ^10.4.3
path: ^1.8.2
path_provider: ^2.0.15
edge_detection: ^1.1.2
lottie: ^2.3.2 // for UI (optional)
get: ^4.6.5
google_mlkit_text_recognition: ^0.8.1
final InputImage inputImage;
if (imagePath.value != null) {
inputImage = InputImage.fromFilePath(imagePath.value);
TextRecognizer textRecognizer = TextRecognizer(script: TextRecognitionScript.latin);
final RecognizedText recognizedText = await textRecognizer.processImage(inputImage);
String text = recognizedText.text;
List<String> lines = text.split('\n');