Image Quality
- Set the threshold for an actual document DPI below which the check fails:
DocumentReader.Instance().processParams().imageQA.dpiThreshold = 150;
- Set the threshold for an actual document perspective angle above which the check fails:
DocumentReader.Instance().processParams().imageQA.angleThreshold = 5;
- Disable / enable the focus check for the image quality validation:
DocumentReader.Instance().processParams().imageQA.focusCheck = true;
- Disable / enable the glares check for the image quality validation:
DocumentReader.Instance().processParams().imageQA.glaresCheck = true;
- Disable / enable the colorness check for the image quality validation:
DocumentReader.Instance().processParams().imageQA.colornessCheck = true;
- Disable / enable the moire patterns check for the image quality validation:
DocumentReader.Instance().processParams().imageQA.moireCheck = true;
- This option controls the quality checks that the image should pass to be considered a valid input during the scanning process.
DocumentReader.Instance().processParams().imageQA.expectedPass = new int[] {eImageQualityCheckType.IQC_IMAGE_RESOLUTION, eImageQualityCheckType.IQC_IMAGE_GLARES};
DocumentReader.Instance().processParams().imageQA!!.expectedPass = intArrayOf(
eImageQualityCheckType.IQC_IMAGE_RESOLUTION,
eImageQualityCheckType.IQC_IMAGE_GLARES
)
- Specify the minimum indent from the corners of the document to the borders of the image. The value reflects the allowed percentage for the indent relative to the width of the document. If it is detected that the corners of the document are closer than the specified value, the status will contain an error in the documentPosition field.
DocumentReader.Instance().processParams().imageQA.documentPositionIndent = 5;
DocumentReader.Instance().processParams().imageQA.documentPositionIndent = 5