boursorama / ocr_scan_text

OCR Flutter
MIT License
7 stars 6 forks source link

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

Open Slhaos7373 opened 4 days ago

Slhaos7373 commented 4 days ago

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

Balage5 commented 2 days ago

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.