# getModel method

DocumentModel getModel()

Gets the model to be used for document detection. Hint: Default value is DocumentDetector2A.

return Model to be used for document detection. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    DocumentModel getModel() {
      Pointer<Int32> pModel = calloc();
      try {
        var err = documentSDK.id3DocumentDetector_GetModel(_pHandle.value, pModel);
        if (err != DocumentError.success.value) {
          throw DocumentException(err);
        }
        final vModel = DocumentModelX.fromValue(pModel.value);
        return vModel;
      } finally {
        calloc.free(pModel);
      }
    }