> For the complete documentation index, see [llms.txt](https://docs.accurascan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.accurascan.com/language/flutter/functions/mrz.md).

# MRZ

### The method use to Start MRZ scanning is

```
AccuraOcr.startMRZ(config)
```

In the above method, the 'config' parameter is an array that consists of the following values, provided in the same format and sequence as shown below:

```
var config = [
  mrzselected, //pass either of the following passport_mrz, id_mrz, visa_mrz, other_mrz (String)
];
```

### The example function is shown below

```
Future<void> startMRZ() async {
try {
var config = [
  mrzselected,
];
await AccuraOcr.startMRZ(config)
    .then((value) => {
  setState((){
    dynamic result = json.decode(value);
          })
        }).onError((error, stackTrace) => {
      });
    } on PlatformException {}
}
```

### ***Response:***

**On Success:** JSON String Response

**Error:** String
