Class ImageQA
java.lang.Object
com.regula.documentreader.api.params.ImageQA
Structure contains options for incoming image quality assurance checks
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class containing additional parameters for glare checking -
Field Summary
Modifier and TypeFieldDescriptionThis parameter sets threshold for Image QA check of the presented document perspective angle in degrees.Set the threshold for an actual document brightness below which the check failsThis option disabled colorness check during performing image quality validationSpecify the minimum indent from the corners of the document to the borders of the image.This parameter sets threshold for Image QA check of the presented document physical dpi.int[]
This option controls the quality checks that the image should pass in order to be considered a valid input during the scanning process.This option disabled focus check during performing image quality validationThis option disabled glares check during performing image quality validationThis option disabled moire patterns check during performing image quality validation -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fromJson
(JSONObject object) Converts JSON object to class instanceJSONObject
Method convert object to JSONObject
-
Field Details
-
dpiThreshold
This parameter sets threshold for Image QA check of the presented document physical dpi. If actual document dpi is below this threshold, check will fail. -
angleThreshold
This parameter sets threshold for Image QA check of the presented document perspective angle in degrees. If actual document perspective angle is above this threshold, check will fail. -
focusCheck
This option disabled focus check during performing image quality validation -
glaresCheck
This option disabled glares check during performing image quality validation -
colornessCheck
This option disabled colorness check during performing image quality validation -
screenCapture
This option disabled moire patterns check during performing image quality validation -
expectedPass
public int[] expectedPassThis option controls the quality checks that the image should pass in order to be considered a valid input during the scanning process. -
glaresCheckParams
-
documentPositionIndent
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 theDocumentReaderResults.imageQuality
list atImageQualityGroup.result
field. -
brightnessThreshold
Set the threshold for an actual document brightness below which the check fails
-
-
Constructor Details
-
ImageQA
public ImageQA()
-
-
Method Details
-
toJsonObject
public JSONObject toJsonObject()Method convert object to JSONObject- Returns:
- object to JSONObject
-
fromJson
public void fromJson(JSONObject object) Converts JSON object to class instance
-