setDocumentWidthRatio method

void setDocumentWidthRatio(
  1. double documentWidthRatio
)

Sets the ratio of the estimated width of the searched document in the image. Hint: Default value is 1.

param documentWidthRatio Ratio of the estimated width of the searched document in the image. throws DocumentException An error has occurred during Document Library execution.

Implementation

void setDocumentWidthRatio(double documentWidthRatio) {
  var err = documentSDK.id3DocumentDetector_SetDocumentWidthRatio(_pHandle.value, documentWidthRatio);
  if (err != DocumentError.success.value) {
    throw DocumentException(err);
  }
}