Skip to content

Throwing exception when run the application  #35

Description

@ysavr

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):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions