# readMrz method

MrzReadingResult readMrz(

1. DocumentImage image

)

Detects and reads an MRZ in an image.

param image Source image to process return MRZ reading output. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    MrzReadingResult readMrz(DocumentImage image) {
      MrzReadingResult result = MrzReadingResult();
      var err = documentSDK.id3DocumentMrzReader_ReadMrz(_pHandle.value, image.handle, result.handle);
      if (err != DocumentError.success.value) {
        result.dispose();
        throw DocumentException(err);
      }
      return result;
    }