Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throwing exception when run the application #35

Open
ysavr opened this issue Oct 15, 2024 · 0 comments
Open

Throwing exception when run the application #35

ysavr opened this issue Oct 15, 2024 · 0 comments

Comments

@ysavr
Copy link

ysavr commented Oct 15, 2024

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):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant