# setModel method

void setModel(

1. DocumentModel model

)

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

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

## Implementation

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