# startMrzScanner static method

Future<MrzScanningResult> startMrzScanner(

1. MrzScannerConfiguration config

)

Starts the Ready-to-Use MRZ Scanner UI as full-screen modal UI dialog. The MRZ Scanner is able to recognize and parse data from the Machine Readable Zone on ID cards, passports, travel documents, etc.

## Implementation

    static Future<MrzScanningResult> startMrzScanner(
        MrzScannerConfiguration config) async {
      try {
        var result = await _invoke('startMrzScanner', config.toJson());
        if (_wasCanceled(result)) {
          return MrzScanningResult.canceled();
        }
        return MrzScanningResult.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        return MrzScanningResult.error(e.toString());
      }
    }