Open guohuan1990 opened 1 week ago
E/ImageError(12845): java.lang.IllegalArgumentException
E/flutter (12845): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(InputImageConverterError, java.lang.IllegalArgumentException, null, null)
E/flutter (12845): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter (12845): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter (12845):
Describe your issue. If applicable, add screenshots to help explain your problem.
_controller = CameraController( camera, // Set to ResolutionPreset.high. Do NOT set it to ResolutionPreset.max because for some phones does NOT work. ResolutionPreset.high, enableAudio: false, imageFormatGroup: Platform.isAndroid ? ImageFormatGroup.yuv420 : ImageFormatGroup.bgra8888, );
}
final recognizedText = await _textRecognizer.processImage(inputImage);
The format does not match at this time. What is the problem?
Steps to reproduce.
What is the expected result?
1
Did you try our example app?
Yes
Is it reproducible in the example app?
Yes
Reproducible in which OS?
Android
Flutter/Dart Version?
No response
Plugin Version?
google_mlkit_text_recognition: ^0.14.0