Class ProcessParam
java.lang.Object
com.regula.documentreader.api.params.ProcessParam
structure, used to configure the processing workflow
will be checked against CORE capabilities
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionThis option can be set to true if you know for sure that the image you provide contains already cropped document by its edges.Set up the backend processing service parameters,Use the following property to set up the barcode parser type which should be used during the recognition.quickly set proper processing parameters when processing single image captured one ofScenario
membersDeprecated.When enabled, each field in template will be checked for value presence and if the field is marked as required, but has no value, it will have "error" in validity status.This option allows output text case transformation.JSONObject
This option allows to pass custom processing parameters that can be implemented in future without changing API.format string of displayed dates in the resultsif set, cropped images of the document will be saved (in case of reading problems)if set, input images will be saved (in case of reading problems)if set, deep logs will be saved (in case of reading problems)When enabled all personal data will be forcibly removed from the logs.if set, images will not be checkedWhen enabled, OCR of perforated fields in the document template will not be performed.String[]
Set the types of barcodes to process.Specifies minimal area of the image that document should cover to be treated as candidate when locating.int[]
List of specific eligible document types from DocumentType enum to recognize from.int[]
List of the document ID's to process.Enable the CAN (Card Access Number) detection when using scenarios with document location and MRZ reading, such as the MrzAndLocate scenarioThis option can be set to true if the image you provide contains double page spread of the passport and you want to process both pages in one go.Set up the Face SDK service parameters,FaceMetaData[]
Deprecated.int[]
List of field typeseVisualFieldType.VisualFieldTypes
to extract.Force use of specified document format when locating and recognizing document to reduce the number of candidates.Force use of specific template ID and skip document type identification step.This option can be set to true to make sure that in series processing MRZ is located fully inside the result document image, if present on the document.When enabled together with "doublePageSpread" and there is a passport with two pages spread in the image, pages will be cropped, straightened and aligned together, as if the document was captured on a flatbed scanner.This parameter is used to generate numeric representation for issuing state and nationality codesThis option controls maximum resolution in dpi of output images.This option controls maximum height in pixels of output images.This option controls maximum width in pixels of output images.SeeImageQA
Build an integral image taking into account the quality of fixation of each of the individual imagesint[]
The list of LCID types to recognize.int[]
The list of LCID types to ignore during the recognition.Sets the level of logs detalization when used together withsetLogs(Boolean)
parameter.if set, manual setting of document's bounds will be enabledWhen disabled, text field OCR will be done as is and then the recognized value will be matched to the field mask for validity.use one ofRGLMeasureSystem
valuesthe minimum acceptable DPI valueThis options allows specifying the minimal age in years of the document holder for the document to be considered valid.Make better MRZ detection on complex noisy backgrounds, like BW photocopy of some documents.String[]
This option allows limiting MRZ formats to be recognized by specifying them in array.This option allows locating and cropping multiple documents from one image if enabled.if set,When enabled no graphic fields will be cropped from document image.When set to false, the Barcode code parsing will be skipped and the raw information from the code will be returned instead.the maximum value of the deviation of the corners of the document from the 90 degrees valueAccepts sum ofeRPRM_Authenticity
elementsWhen enabled, image quality checks status affects document optical and overall status.int[]
Types of results to return in response.When enabled, returns cropped barcode images for unknown documentsThis option allows returning input images in output if enabled.quickly set proper processing parameters, one ofScenario
membersThe path to the folder of the current session.This option allows shifting the date of expiry into the future or past for number of months specified.When set to `true`, theDocumentReaderResults.rawResult
property of theDocumentReaderResults
will contain the encrypted containers of scanning results that may be used for later reprocessing.When enabled, the Surname and GivenNames field will be divided into ft_First_Name, ft_Second_Name, ft_Third_Name, ft_Fourth_Name, ft_Last_Name fields.The time limit (in seconds) for the document recognition, beyond which the recognition does not continue regardless of its result.The time limit (in seconds) for the document recognition, beyond which the recognition does not continue regardless of its result.The time limit (in seconds) for the document recognition, beyond which the recognition does not continue regardless of its result.Start the countdown from the moment the document liveness authenticity check is started (in seconds)When enabled, fail OCR field validity, if there is a glare over the text field on the image.Use this property to set up the Face API integration.true when torch is connected and enabled by user -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts properly formatted JSON string to the params object instanceMethod is returned process params to core for each frameMethod is returned process params to core during rfid readingReturns the current document processing scenario.Indicates if logging to logcat console is enabledboolean
Flag, indicates if manual document boundaries setting is availablevoid
Enables logging to the logcat consolevoid
setScenario
(String scenario) Use this method to set the document processing scenario.toJson()
Method converts object to string in json formatJSONObject
Method converts params object to JSONObject instance
-
Field Details
-
multipageProcessing
if set, -
dateFormat
format string of displayed dates in the results -
debugSaveImages
if set, input images will be saved (in case of reading problems) -
debugSaveLogs
if set, deep logs will be saved (in case of reading problems) -
scenario
quickly set proper processing parameters, one ofScenario
members -
uvTorchEnabled
true when torch is connected and enabled by user -
documentIDList
public int[] documentIDListList of the document ID's to process. All documents will be processed, if empty. -
doBarcodes
Set the types of barcodes to process. UseBarcodeType.BarcodeTypeValues
elements -
debugSaveCroppedImages
if set, cropped images of the document will be saved (in case of reading problems) -
sessionLogFolder
The path to the folder of the current session. Before using this, save logs. Each new session provides a different path -
disableFocusingCheck
if set, images will not be checked -
captureButtonScenario
quickly set proper processing parameters when processing single image captured one ofScenario
members -
fieldTypesFilter
public int[] fieldTypesFilterList of field typeseVisualFieldType.VisualFieldTypes
to extract. All fields will be extracted, if empty. -
measureSystem
use one ofRGLMeasureSystem
values -
returnUncroppedImage
This option allows returning input images in output if enabled. -
returnCroppedBarcode
When enabled, returns cropped barcode images for unknown documents -
faceMetaData
public FaceMetaData[] faceMetaData -
customParams
public JSONObject customParamsThis option allows to pass custom processing parameters that can be implemented in future without changing API. -
debugSaveRFIDSession
-
doublePageSpread
This option can be set to true if the image you provide contains double page spread of the passport and you want to process both pages in one go. It makes sense to use it for documents that have meaningful information on both pages, like Russian domestic passport, or some others. -
manualCrop
if set, manual setting of document's bounds will be enabled -
barcodeParserType
Use the following property to set up the barcode parser type which should be used during the recognition. -
documentPosition
-
integralImage
Build an integral image taking into account the quality of fixation of each of the individual images -
minDPI
the minimum acceptable DPI value -
perspectiveAngle
the maximum value of the deviation of the corners of the document from the 90 degrees value -
timeout
The time limit (in seconds) for the document recognition, beyond which the recognition does not continue regardless of its result. The countdown will start from the moment the scenario starts -
timeoutFromFirstDetect
The time limit (in seconds) for the document recognition, beyond which the recognition does not continue regardless of its result. The countdown will start from the moment the document is detected -
timeoutFromFirstDocType
The time limit (in seconds) for the document recognition, beyond which the recognition does not continue regardless of its result. The countdown will start from the moment the document type is recognized -
timeoutLiveness
Start the countdown from the moment the document liveness authenticity check is started (in seconds) -
checkHologram
Deprecated.Define whether to check the holograms UseauthenticityParams
instead. -
checkRequiredTextFields
When enabled, each field in template will be checked for value presence and if the field is marked as required, but has no value, it will have "error" in validity status. -
depersonalizeLog
When enabled all personal data will be forcibly removed from the logs. -
resultTypeOutput
public int[] resultTypeOutputTypes of results to return in response. See 'Result' enum for available options -
generateDoublePageSpreadImage
When enabled together with "doublePageSpread" and there is a passport with two pages spread in the image, pages will be cropped, straightened and aligned together, as if the document was captured on a flatbed scanner. -
imageDpiOutMax
This option controls maximum resolution in dpi of output images. Resolution will remain original in case 0 is supplied. By default is set to return images in response with resolution not greater than 300 dpi. -
imageOutputMaxHeight
This option controls maximum height in pixels of output images. -
imageOutputMaxWidth
This option controls maximum width in pixels of output images. -
alreadyCropped
This option can be set to true if you know for sure that the image you provide contains already cropped document by its edges. This was designed to process on the server side images captured and cropped on mobile. -
forceDocID
Force use of specific template ID and skip document type identification step. -
matchTextFieldMask
When disabled, text field OCR will be done as is and then the recognized value will be matched to the field mask for validity. If enabled, we are trying to read a field value with maximum efforts to match the mask and provide a correctly formatted value, making assumptions based on the provided field mask in the template. -
fastDocDetect
Deprecated.When enabled, shorten the list of candidates to process during document detection in a single image process mode. Reduces processing time for specific backgrounds. -
updateOCRValidityByGlare
When enabled, fail OCR field validity, if there is a glare over the text field on the image. -
imageQA
SeeImageQA
-
forceDocFormat
Force use of specified document format when locating and recognizing document to reduce the number of candidates. -
noGraphics
When enabled no graphic fields will be cropped from document image. -
documentAreaMin
Specifies minimal area of the image that document should cover to be treated as candidate when locating. Value should be in range from 0 to 1, where 1 is when document should fully cover the image. -
multiDocOnImage
This option allows locating and cropping multiple documents from one image if enabled. -
shiftExpiryDate
This option allows shifting the date of expiry into the future or past for number of months specified. This is useful, for example, in some cases when document might be still valid for some period after original expiration date to prevent negative validity status for such documents. Or by shifting the date to the past will set negative validity for the documents that is about to expire in a specified number of months. -
minimalHolderAge
This options allows specifying the minimal age in years of the document holder for the document to be considered valid. -
mrzFormatsFilter
This option allows limiting MRZ formats to be recognized by specifying them in array. -
forceReadMrzBeforeLocate
This option can be set to true to make sure that in series processing MRZ is located fully inside the result document image, if present on the document. Enabling this option may add extra processing time, by disabling optimizations, but allows more stability in output image quality. -
parseBarcodes
When set to false, the Barcode code parsing will be skipped and the raw information from the code will be returned instead. -
disablePerforationOCR
When enabled, OCR of perforated fields in the document template will not be performed. Disabled by default. -
documentGroupFilter
public int[] documentGroupFilterList of specific eligible document types from DocumentType enum to recognize from. You may, for example, specify only passports to be recognized by setting this property. Empty by default. -
respectImageQuality
When enabled, image quality checks status affects document optical and overall status. Disabled by default. -
splitNames
When enabled, the Surname and GivenNames field will be divided into ft_First_Name, ft_Second_Name, ft_Third_Name, ft_Fourth_Name, ft_Last_Name fields. Disabled by default. -
shouldReturnPackageForReprocess
When set to `true`, theDocumentReaderResults.rawResult
property of theDocumentReaderResults
will contain the encrypted containers of scanning results that may be used for later reprocessing. -
processAuth
Accepts sum ofeRPRM_Authenticity
elements -
convertCase
This option allows output text case transformation. No changes applied by default to original values. -
useFaceApi
Use this property to set up the Face API integration. -
faceApiParams
Set up the Face SDK service parameters, -
backendProcessingConfig
Set up the backend processing service parameters, -
doDetectCan
Enable the CAN (Card Access Number) detection when using scenarios with document location and MRZ reading, such as the MrzAndLocate scenario -
rfidParams
-
lcidIgnoreFilter
public int[] lcidIgnoreFilterThe list of LCID types to ignore during the recognition. If empty, values with all LCID types will be extracted. Narrowing down the list can reduce processing time. Null by default. UseLCID.LCID_List
elements -
lcidFilter
public int[] lcidFilterThe list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default. UseLCID.LCID_List
elements -
doFlipYAxis
-
useAuthenticityCheck
-
authenticityParams
-
logLevel
Sets the level of logs detalization when used together withsetLogs(Boolean)
parameter. -
mrzDetectMode
Make better MRZ detection on complex noisy backgrounds, like BW photocopy of some documents. Works only in the single-frame processing. -
generateNumericCodes
This parameter is used to generate numeric representation for issuing state and nationality codes
-
-
Constructor Details
-
ProcessParam
public ProcessParam()
-
-
Method Details
-
getCoreJson
Method is returned process params to core for each frame- Returns:
- json in string format
-
getRfidCoreJson
Method is returned process params to core during rfid reading- Returns:
- json in string format
-
toJSONObject
public JSONObject toJSONObject()Method converts params object to JSONObject instance -
toJson
Method converts object to string in json format- Returns:
- string in json format
-
fromJson
Converts properly formatted JSON string to the params object instance -
isLogEnable
Indicates if logging to logcat console is enabled -
setLogs
Enables logging to the logcat console -
setScenario
Use this method to set the document processing scenario.- Parameters:
scenario
- one ofScenario.Scenarios
element
-
getScenario
Returns the current document processing scenario.- See Also:
-
isManualCropAvailable
public boolean isManualCropAvailable()Flag, indicates if manual document boundaries setting is available
-