# setModel method

void setModel(

1. DocumentModel model

)

Sets the AI model used to detect the MRZ. Hint: Default value is MrzDetector2A.

param model AI model used to detect the MRZ. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    void setModel(DocumentModel model) {
      var err = documentSDK.id3DocumentMrzReader_SetModel(_pHandle.value, model.value);
      if (err != DocumentError.success.value) {
        throw DocumentException(err);
      }
    }