Computer Vision Validations
You can define advanced validations based on predefined validation codes for the following document types:

Validation Code | Description |
---|---|
V01 |
Checks the Romanian personal identification number (CNP) integrity. Also validates that the CNP contains only digits. If this validation fails, the data returned in the PersonalNumber field will be as extracted from OCR (the returned string won't be a valid CNP). |
V10 |
Checks the MRZ integrity based on the following international standards:
Control digits are verified based on the Machine Readable Passport (MRP) specifications. |

Romanian identity cards support two types of validations:
- Microservice validations - Validations performed by the OCR service. These validations are set by providing the corresponding validation codes in the
Validations
field of theDocumentSettings
key. E.g: V01, V07, V10, etc. - Processor validations - Validations performed by the OCR processor, after receiving the result from the OCR service. Each of these validations has a dedicated boolean field (e.g.:
BirthdayValidation
,PINValidation
) in theDocumentSettings
key.
"DocumentSettings": {
"DocumentType":"IdentityCard",
"Country":"RO",
"Provider":"Azure",
"Validations":"V01,V05,V06,V07,V08,V10",
"RequiredFields": ["LastNameBody", "GivenNameBody", "DocumentNumberBody", "PersonalNumberBody", "BirthDateBody", "Address", "DocumentNumber", "CardType", "ProcessedPage"],
"BirthdayValidation": true,
"PINValidation": true
}
The following microservice validations are supported:
Validation Code | Description |
---|---|
V01 |
Checks the Romanian personal identification number (CNP) integrity. Also validates that the CNP contains only digits. If this validation fails, the data returned in the PersonalNumber field will be as extracted from OCR (the returned string won't be a valid CNP). |
V05 |
Compares the birth dates extracted from the CNP and MRZ. For new identity cards, this will always return N/A. |
V06 |
Compares the final 6 CNP digits extracted from the CNP and MRZ. For new identity cards, this will always return N/A. |
V07 |
Checks if the identity card's expiration date matches the person's birthday and if the identity card is not expired. Dates are extracted from the MRZ. The following checks are performed: For standard IDs:
For biometric IDs:
|
V08 |
Checks if the age is above 18 years old. The date of birth is extracted from the MRZ. |
V10 |
Checks the MRZ integrity based on the following international standards:
Control digits are verified based on the Machine Readable Passport (MRP) specifications. |
The following processor validations are supported:
Field | Value |
---|---|
BirthdayValidation |
|
PINVAlidation |
|

Validation Code | Description |
---|---|
V01 |
Checks if the Vehicle Identity Number (VIN) is valid. |
V02 |
Checks that the vehicle license plate number is valid (AA-111-AAA). |

Validation Code | Description |
---|---|
V01 |
Checks the Romanian personal identification number (CNP) integrity. Also validates that the CNP contains only digits. If this validation fails, the data returned in the PersonalNumber field will be as extracted from OCR (the returned string won't be a valid CNP). |
V05 |
Compares the birth dates extracted from the CNP and MRZ. |
V06 |
Compares the last 6 CNP digits extracted from the CNP and MRZ. |
V07 |
Checks that the passport is not expired and that the expiration date matches the date of issue. Dates are extracted from the MRZ. |
V10 |
Checks the MRZ integrity based on the TD3 international standard. Control digits are verified based on the Machine Readable Passport (MRP) specifications. |