Computer Vision Settings
The Computer Vision settings are defined in JSON format as key-value pairs. The following settings are available:
| Setting | JSON Key | Description |
|---|---|---|
| Workflow entity | SourceEntityName | The entity associated with the business workflow (digital journey) that calls the OCR process.Needed only if the OCR process is used on an edit form (to alter an existing record) to update the workflow entity's business status after the scan (see BusinessStatusSuccess and BusinessStatusFail).If the OCR process is used on an insert form (to create a new record), this key is not needed. |
| Populated entities | Entities | Indicates the entities that will be populated with the scanned values.
|
| User confirmation | WaitUserConfirmation | The default value is true.
|
| Show Upload Photo button | ShowUploadPhotoButton |
|
| Show Take Picture button | ShowTakePictureButton |
|
| Register face from OCR | RegisterFaceFromOCR |
|
| Session expired minutes | SessionExpiredMins | The time in minutes after which, if no navigation to another screen is done, the session expires. In this case, it redirects the user to a session expired page. NOTE Make sure your main entity's business status is updated to the business status you have set in your flow settings for b usinessStatusSessionExpired. |
| Rotate image | RotateImage |
Rotates the image to an angle that is multiple of 90° (180, 270 etc.), based on the orientation of the text from the OCR. |
| Crop image | CropImage | If true, it extracts the person's face in an image and returns the data in the following structure:Copy |
| Maximum number of scan attempts | MaxRetry | The maximum number of scan attempts. If this number of failed scans is reached, the user will be redirected according to the specifications in the MaskNextStepUrlFail. |
| Option set based validation and replacement | OptionSets | Replaces values returned by the OCR process with entries from an option set.
|
| Entity based validation | LookupEntities |
Validates values returned by the OCR processor based on records in an entity.
Parent – Defines hierarchical relationships between lookup entities. For instance, you can check if a city name belongs to a valid county name.
If the value returned by the OCR processor is not found in the lookup entity, the entry will not be populated. The user will be able to manually select only values from the lookup entity. |
| Advanced validations | Validations | Defines advanced validations based on predefined validation codes. Type – Type of scanned document on which the validation is applied (see AvailableDocumentTypes). Validations – Validation codes. The following validations are available for Romanian identity cards:
Copy |
| Available document types | AvailableDocumentTypes | Defines classifications for the document scans based on the document type and service provider.
|
| Redirect in case of success | MaskNextStepUrlSuccess | Location in the user interface where the user is redirected after a successful scan.
|
| Redirect in case of failure | MaskNextStepUrlFail | Location in the user interface where the user is redirected after the maximum number of failed scan attempts (see MaxRetry).
|
| Business status update in case of success | BusinessStatusSuccess | Business workflow status update of the Workflow entity if the scan is successful. Needed only if the OCR process is used on an edit form (to alter an existing record). If the OCR process is used on an insert form (to create a new record), this key is not needed. |
| Business status update in case of failure | BusinessStatusFail | Business workflow status update of the Workflow entity if the scan fails. Needed only if the OCR process is used on an edit form (to alter an existing record). If the OCR process is used on an insert form (to create a new record), this key is not needed. |
| Document type | DocumentType | Indicates the type of scanning the OCR processor will perform based on the values defined in the AvailableDocumentTypes setting. Only one document type can be enabled per automation processor. |
Examples
{
"SourceEntityName": "FTOS_BARET_AccountApplication",
"Entities": [
{
"DestinationEntityName": "FTOS_BNKAP_RetailApplicantData",
"SourceEntityName": "FTOS_BARET_AccountApplication",
"SourceLookupDestinationName": "retailApplicantId"
},
{
"DestinationEntityName": "FTOS_BNKAP_RetailApplicantAddress",
"SourceEntityName": "FTOS_BARET_AccountApplication",
"SourceLookupDestinationName": "FTOS_BNKAP_RetailApplicantAddressId"
}
],
"WaitUserConfirmation" : true,
"ShowUploadPhotoButton" : true,
"ShowTakePictureButton" : true,
"RegisterFaceFromOCR" : false,
"SessionExpiredMins" : 15,
"RotateImage" : false,
"CropImage" : false,
"MaxRetry": 5,
"OptionSets": [
{
"OptionSetName": "FTOS_DFP_GenderOptionSet",
"MappingName": "Sex",
"OptionSetItems": {
"M": "M",
"F": "F"
}
}
],
"LookupEntities":[
{
"MappingName":"DistrictCode",
"EntityName":"District",
"AttributeKey":"Code"
},
{
"MappingName":"BirthDistrictBody",
"EntityName":"District",
"AttributeKey":"Code"
},
{
"MappingName":"IssuingCountry",
"EntityName":"FTOS_CMB_Country",
"AttributeKey":"code"
},
{
"MappingName":"City",
"EntityName":"City",
"AttributeKey":"Name",
"Parent":{
"AttributeParentKey":"DistrictId",
"MappingParentName":"DistrictCode"
}
}
],
"Validations": [
{
"type": "IdROM",
"Validations": "V01,V05,V06,V07,V08",
"CheckScriptName": "ValidateIdROM"
},
{
"type": "Passport",
"Validations": "V05",
"CheckScriptName": "ValidateIdPass"
}
],
"AvailableDocumentTypes": [
{
"type":"IdRom",
"DocumentType":"IdentityCard",
"Country":"RO",
"Provider":"Azure"
},
{
"type":"IdBG",
"DocumentType":"IdentityCard",
"Country":"BG",
"Provider":"Abbyy"
},
{
"type":"Passport",
"DocumentType":"MRZ",
"Provider":"Azure"
},
{
"type":"DrivingLicence",
"DocumentType":"DrivingLicence",
"Provider":"Azure"
}
],
"maskNextStepURLSuccess": {
"entity": "FTOS_BARET_AccountApplication",
"form": "FTOS_BARET_AccountApplication_UserJourney",
"section": "Personal Data"
},
"maskNextStepURLFail": {
"entity": "FTOS_BARET_AccountApplication",
"form": "FTOS_BARET_AccountApplication_UserJourney",
"section": "Current Account"
},
"maskNextStepURLFailSessionExpired":{
"entity":"TestEntity",
"form":"FTOS_BARET_AccountApplication_UJ_FlowControl",
"section":"SessionExpired1"
},
"businessStatusSuccess": "OCR Validation",
"businessStatusFail": "OCR Failed",
"DocumentType": "IdRom"
}
{
"Entities": [
{
"DestinationEntityName": "FTOS_ACC_Account",
"SourceEntityName": "FTOS_ACC_Account",
"SourceLookupDestinationName": "FTOS_ACC_Accountid"
},
{
"DestinationEntityName": "FTOS_ACC_Address",
"SourceEntityName": "FTOS_ACC_Account",
"SourceLookupDestinationName": "DefaultAddressId"
}
],
"WaitUserConfirmation" : true,
"ShowUploadPhotoButton" : true,
"ShowTakePictureButton" : true,
"RegisterFaceFromOCR" : false,
"SessionExpiredMins" : 15,
"RotateImage" : false,
"CropImage" : false,
"MaxRetry":5,
"OptionSets":[
{
"OptionSetName": "FTOS_ACC_GenderType",
"MappingName": "Sex",
"OptionSetItems": {
"M": "Male",
"F": "Female"
}
}
],
"LookupEntities": [
{
"MappingName":"DistrictCode",
"EntityName":"District",
"AttributeKey":"Code"
},
{
"MappingName":"BirthDistrictBody",
"EntityName":"District",
"AttributeKey":"Code"
},
{
"MappingName":"IssuingCountry",
"EntityName":"FTOS_CMB_Country",
"AttributeKey":"code"
},
{
"MappingName":"City",
"EntityName":"City",
"AttributeKey":"Name",
"Parent":{
"AttributeParentKey":"DistrictId",
"MappingParentName":"DistrictCode"
}
}
],
"Validations":[
{
"type":"IdRom",
"Validations":"V01,V05,V06,V07,V08",
"CheckScriptName":"ValidateIdROM"
},
{
"type":"Passport",
"Validations":"V05",
"CheckScriptName":"ValidateIdPass"
}
],
"AvailableDocumentTypes":[
{
"type":"IdRom",
"DocumentType":"IdentityCard",
"Country":"RO",
"Provider":"Azure"
},
{
"type":"IdBG",
"DocumentType":"IdentityCard",
"Country":"BG",
"Provider":"Abbyy"
},
{
"type":"Passport",
"DocumentType":"MRZ",
"Provider":"Azure"
},
{
"type":"DrivingLicence",
"DocumentType":"DrivingLicence",
"Provider":"Azure"
}
],
"maskNextStepURLSuccess":{
"entity":"TestEntity",
"form":"FTOS_BARET_AccountApplication_UJ_FlowControl",
"section":"Personal Data"
},
"maskNextStepURLFail":{
"entity":"TestEntity",
"form":"FTOS_BARET_AccountApplication_UJ_FlowControl",
"section":"Current Account"
},
"maskNextStepURLFailSessionExpired":{
"entity":"TestEntity",
"form":"FTOS_BARET_AccountApplication_UJ_FlowControl",
"section":"SessionExpired1"
},
"DocumentType": "IdRom"
}