-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
There was no recognition at all
i already declare the module
late ScanAllModule scanModule;
@override
void initState() {
super.initState();
scanModule = ScanAllModule();
scanModule.start();
}
and this is the widget
Widget _buildLiveScan() {
return LiveScanWidget(
ocrTextResult: (ocrTextResult) {
ocrTextResult.mapResult.forEach((module, result) {
print('OCR result $result');
});
},
scanModules: [ScanAllModule()],
);
}
Error Exception
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(InputImageConverterError, java.lang.IllegalArgumentException, null, null)
E/flutter ( 6928): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter ( 6928): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter ( 6928): <asynchronous suspension>
E/flutter ( 6928): #2 TextRecognizer.processImage (package:google_mlkit_text_recognition/src/text_recognizer.dart:23:20)
E/flutter ( 6928): <asynchronous suspension>
E/flutter ( 6928): #3 OcrScanService.processImage (package:ocr_scan_text/ocr_scan/services/ocr_scan_service.dart:169:28)
E/flutter ( 6928): <asynchronous suspension>
E/flutter ( 6928): #4 ScanWidgetState.processImage (package:ocr_scan_text/ocr_scan/widget/scan_widget.dart:65:39)
E/flutter ( 6928): <asynchronous suspension>
E/flutter ( 6928):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels