Skip to content

Image Quality

  • Set the threshold for an actual document DPI below which the check fails:
DocumentReader.setConfig({
    processParams: {
        imageQA: {
            dpiThreshold: 150
        }
    },
}, (str) => { console.log(str) }, (error) => { console.log(error) });
  • Set the threshold for an actual document perspective angle above which the check fails:
DocumentReader.setConfig({
    processParams: {
        imageQA: {
            angleThreshold: 5
        }
    },
}, (str) => { console.log(str) }, (error) => { console.log(error) });
  • Disable / enable the focus check for the image quality validation:
DocumentReader.setConfig({
    processParams: {
        imageQA: {
            focusCheck: true
        }
    },
}, (str) => { console.log(str) }, (error) => { console.log(error) });
  • Disable / enable the glares check for the image quality validation:
DocumentReader.setConfig({
    processParams: {
        imageQA: {
            glaresCheck: true
        }
    },
}, (str) => { console.log(str) }, (error) => { console.log(error) });
  • Disable / enable the colorness check for the image quality validation:
DocumentReader.setConfig({
    processParams: {
        imageQA: {
            colornessCheck: true
        }
    },
}, (str) => { console.log(str) }, (error) => { console.log(error) });
  • Disable / enable the moire patterns check for the image quality validation:
DocumentReader.setConfig({
    processParams: {
        imageQA: {
            moireCheck: true
        }
    },
}, (str) => { console.log(str) }, (error) => { console.log(error) });
  • This option controls the quality checks that the image should pass to be considered a valid input during the scanning process.
DocumentReader.setConfig({
    processParams: {
        imageQA: {
            expectedPass: [
                eImageQualityCheckType.IQC_IMAGE_RESOLUTION,
                eImageQualityCheckType.IQC_IMAGE_GLARES
            ]
        }
    },
}, (str) => { console.log(str) }, (error) => { console.log(error) });

Next Steps