Class ImageQA
- java.lang.Object
-
- com.regula.documentreader.api.params.ImageQA
-
public class ImageQA extends java.lang.Object
Structure contains options for incoming image quality assurance checks
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageQA.GlaresCheckParams
Class containing additional parameters for glare checking
-
Field Summary
Fields Modifier and Type Field Description java.lang.Integer
angleThreshold
This parameter sets threshold for Image QA check of the presented document perspective angle in degrees.java.lang.Double
brightnessThreshold
Set the threshold for an actual document brightness below which the check failsjava.lang.Boolean
colornessCheck
This option disabled colorness check during performing image quality validationjava.lang.Integer
documentPositionIndent
Specify the minimum indent from the corners of the document to the borders of the image.java.lang.Integer
dpiThreshold
This parameter sets threshold for Image QA check of the presented document physical dpi.int[]
expectedPass
This option controls the quality checks that the image should pass in order to be considered a valid input during the scanning process.java.lang.Boolean
focusCheck
This option disabled focus check during performing image quality validationjava.lang.Boolean
glaresCheck
This option disabled glares check during performing image quality validationImageQA.GlaresCheckParams
glaresCheckParams
java.lang.Boolean
screenCapture
This option disabled moire patterns check during performing image quality validation
-
Constructor Summary
Constructors Constructor Description ImageQA()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromJson(JSONObject object)
Converts JSON object to class instanceJSONObject
toJsonObject()
Method convert object to JSONObject
-
-
-
Field Detail
-
dpiThreshold
public java.lang.Integer 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
public java.lang.Integer 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
public java.lang.Boolean focusCheck
This option disabled focus check during performing image quality validation
-
glaresCheck
public java.lang.Boolean glaresCheck
This option disabled glares check during performing image quality validation
-
colornessCheck
public java.lang.Boolean colornessCheck
This option disabled colorness check during performing image quality validation
-
screenCapture
public java.lang.Boolean screenCapture
This option disabled moire patterns check during performing image quality validation
-
expectedPass
public int[] expectedPass
This option controls the quality checks that the image should pass in order to be considered a valid input during the scanning process.
-
glaresCheckParams
public ImageQA.GlaresCheckParams glaresCheckParams
-
documentPositionIndent
public java.lang.Integer 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
public java.lang.Double brightnessThreshold
Set the threshold for an actual document brightness below which the check fails
-
-