There are several parameters that determine whether the image being processed passes the quality check or not.
| Parameter | Default | Discription |
| imageQA.dpiThreshold | 150 | Set the threshold for an actual document DPI below which the check fails |
| imageQA.angleThreshold | 5 | Set the threshold for an actual document perspective angle above which the check fails |
| imageQA.focusCheck | true | Enable the focus check for the image quality validation |
| imageQA.glaresCheck | true | Enable the glares presence check for the image quality validation |
| imageQA.colornessCheck |
true | Enable the colorness check for the image quality validation |
| imageQA.moireCheck | true | Enable the moire patterns check for the image quality validation |
| imageQA.Handwritten | 2 | For SDK 6.1 and above. Check for text to be NOT handwritten, because it is impossible to guarantee correct handwritten text recognition. If returns 1 - text NOT handwritten, if returns 0 - text IS handwritten and check counts as failed. If returs 2 - check is not defind. |
You can specify custom quality checks that the image should pass to be considered a valid input during the scanning process using this as example:
DocReader.shared.processParams.imageQA.expectedPass = [.imageResolution, .imageGlares]
In this example, image will pass if only passes Image Resolution and Glares presents checks, ignoring all other checks results.
Comments
Please sign in to leave a comment.