boursorama / ocr_scan_text

OCR Flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I ran a scan using demo, but there was no recognition at all

Slhaos7373 opened this issue · comments

I ran a scan using demo, but there was no recognition at all
Whether it's from a photo album or a camera

    List<List<MrzLine>>? results = await mrzDetector.recognizeByBuffer(
        byteData.buffer.asUint8List(),
        image.width,
        image.height,
        byteData.lengthInBytes ~/ image.height,
        ImagePixelFormat.IPF_ARGB_8888.index);

results lenght 是 0

Hello @Slhaos7373 !

Did you started the module? (I had the same error and this way worked for me)

  late ScanAllModule scanModule;

  @override
  void initState() {
    super.initState();
    scanModule = ScanAllModule();
    scanModule.start();
  }

If this not working, I share you my code if needed.