startScanWithPhoto method
Implementation
Future<OcrTextRecognizerResult?> startScanWithPhoto() async {
// FilePicker don't work with iOS LivePhoto
final ImagePicker picker = ImagePicker();
final XFile? file = await picker.pickImage(source: ImageSource.gallery);
if (file == null) {
return null;
}
return startScanProcess(File(file.path));
}