Document OCR
Last updated
Last updated
2023 © Caf. - All rights reserved
Optical Character Recognition - extraction of data from submitted documents.
Section: ocr
Required files: any document images
Attribute | Type | Description |
---|---|---|
Rule | Description |
---|---|
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
federativeUnit
String
State
rg
String
RG
via
String
issueDate
String
Date of Issue
name
String
Name
fatherName
String
Father's name
motherName
String
Mother's name
birthPlace
String
Place of birth
birthDate
String
Date of birth
referenceDocument
String
Document Source
cpf
String
CPF
issueState
String
State of Issue
issuingAuthority
String
Issuing Agency
rgIssuingAuthority
String
RG Issuing Agency
rgIssueState
String
State of RG Issue
department
String
Department
documentTypeRgFront
String
Document Type
footerRgBack
String
Footer RG back
graphicName
String
Graphic Name
headerRgFront
String
Header RG front
institute
String
Institute
issuingAuthorityHeader
String
Issuing Authority Header
lawRgBack
String
Law Rg back
parentsSeparator
String
ParentsSeparator
is_readable
Checks that the documents are legible
is_cnh
Verifies if the document sent is a CNH
has_cpf
Checks whether the transaction has a CPF (read by the OCR or entered manually)
cnh_has_valid_date
Checks that the expiry date of the CNH is not expired
valid_issue_date
Checks that the document's issue date is valid.
valid_cpf_number
Verifies if the CPF number is valid
valid_rg_number
Check that the ID number is valid.
valid_cnh_registration_number
Check that the CNH registration number is valid.
valid_rg_issue_authority
Check that the issuing body of the ID card is valid.
valid_issue_state
Checks that the UF of the body issuing the document is valid.
parameters_and_document_are_equal
Checks for discrepancies between the data in the document and that entered manually.
ocr_equals_parameters
The rule will be invalid if the information provided in the parameters and read by the OCR are different.
rg_issue_less_than_25
The rule will be invalid if the RG document type was issued more than 25 years ago.
is_literate
The rule will be invalid if the OCR identifies that the document belongs to a non-literate person.
rg_has_cpf
The rule will be invalid if the RG document type does not have the CPF field filled.
company_qsa_data_compatibility
The rule will be invalid if the name and CPF of the partners sent in the PJ onboarding are different from those in the PF onboarding.
data_and_document_are_equal
The rule will be invalid if there is a discrepancy between the parameter information and the OCR.
has_cnh_for_more_than_three_years
The rule will be invalid if the driver has less than 3 years of licensing.
has_definitive_cnh
The rule will be invalid if the driver does not have a permanent license.
document_issue_less_than_10
The rule will be invalid if the document was issued more than 10 years ago.
issued_over_16_years
Checks that the difference between the date of birth and the issue of the ID document is greater than or equal to 16 years.
first_and_last_name_similarity
Checks the similarity between the union of the first and last name sent in the parameters compared to the union of the first name and each surname in the source.
is_passport
The rule will be invalid if the document is not a passport.
is_not_passport
The rule will be invalid if the document is a passport.
is_not_ctps
The rule will be invalid if the document is not a work permit.
document_is_known
The rule will be invalid if the document is categorized as "others", "null", or "invalid".
parameters_and_document_undefined_or_equal
Checks for non-existence or divergence between document data and manually entered data.
invalid_range_ages
Checks that the CPF holder is within the configured age range.
birthDate
String
Date of birth
cpf
String
CPF
name
String
Name
motherName
String
Mother's Name
fatherName
String
Father's Name
issueDate
String
Date of issue
rg
String
RG
rgIssueState
String
RG Issuing State
rgIssuingAuthority
String
RG issuing agency
acc
String
Moped Permit
category
String
Driver's license category
firstDriverLicenseDate
String
Date of your first driver's license
placeOfIssue
String
Place where CNH was issued
mirrorNumber
String
CNH mirror number
registrationNumber
String
CNH registration number
renachNumber
String
RENACH number
securityNumber
String
Security number
notes
String
Observations
expirationDate
String
Expiration date
cnhIssueState
String
CNH issue state
issueState
String
Issue state
crlvNumber
String
CRLV number
via
String
Via
renavamCode
String
Renavam code
rntrc
String
rntrc
assignmentYear
String
Assignment year
name
String
Name
cpf
String
CPF
cnpj
String
CNPJ
plate
String
Plate
previousPlateAndState
String
Previous plate and state
chassis
String
Chassis
type
String
Type
fuel
String
Fuel
brandAndMovel
String
Brand and Movel
manufactureYear
String
Manufacture Year
modelYear
String
Model year
capacityPowerCylinders
String
Capacity power cylinders
category
String
Category
predominantColor
String
PredominantColor
issueDate
String
Issue date
pisPasep
String
Pis Pasep
documentNumber
String
Document Number
documentSeries
String
Document Series
federativeUnit
String
Federative Unit
name
String
Name
motherName
String
Mother name
fatherName
String
Father name
birthDate
String
Birth date
maritalStatus
String
Marital Status
referenceDocument
String
Reference Document
cpf
String
CPF
issuePlace
String
Issue Place
issueDate
String
Issue Date
birthDate
String
Birth Date
classification
String
Classification
entryDate
String
Entry date
fatherName
String
Father name
gender
String
Gender
issueDate
String
Issue date
issuingAuthority
String
Issuing Authority
legalProtection
String
Legal protection
motherName
String
Mother name
mrz
String
MRZ
name
String
Name
nationality
String
Nationality
nativeCountry
String
Native Country
rne
String
RNE
validity
String
Validity
via
String
Via
birthDate
String
Birth Date
classification
String
Classification
cpf
String
CPF
fatherName
String
Father name
gender
String
Gender
issueDate
String
Issue date
issuingAuthority
String
Issuing Authority
legalProtection
String
Legal protection
motherName
String
Mother name
mrz
String
MRZ
name
String
Name
nationality
String
Nationality
protocol
String
Protocol
residenceTerm
String
Resident Term
rnm
String
RNM
validity
String
Validity
birthDate
String
Birth Date
expirationDate
String
Expiration date
frontNumber
String
Front number
gender
String
Gender
issueDate
String
Issue date
issuingAuthority
String
Issuing authority
issuingCountry
String
Issuing country
motherName
String
Mother name
mrz
String
MRZ
name
String
Name
nationality
String
Nationality
naturality
String
Nationality
number
String
Number
type
String
Type
assignmentYear
String
Assignment year
axles
String
Axles
body
String
Body
brandAndModel
String
Brand and Model
capacityInPeople
String
Capacity in people
capacityInWeight
String
Capacity in Weight
capacityPowerCylinders
String
Capacity power cylinders
cat
String
Cat
category
String
Category
chassis
String
Chassis
claSecurityNumber
String
Cla security number
cmt
String
CMT
cnpj
String
CNPJ
cpf
String
CPF
cpfMask
String
CPF mask
crlvNumber
String
CRLV number
crvNumber
String
CRV number
fuel
String
Fuel
issueAuthority
String
Issue authority
issueDate
String
Issue date
issuePlace
String
Issue place
issueState
String
Issue state
manufactureYear
String
Manufacture Year
modelYear
String
Model year
motor
String
Motor
name
String
Name
plate
String
Plate
predominantColor
String
Predominant color
previousPlateAndState
String
Previous plate and state
renavamCode
String
Renavam code
type
String
Type
vehicleObservations
String
Vehicle observations
name
String
Name
firstDriverLicenseDate
String
First driver license date
birthDate
String
Birth date
birthPlace
String
Birth place
birthState
String
Birth state
birthDateCityState
String
Birth date, city and state
issueDate
String
Issue date
expirationDate
String
Expiration date
acc
String
Acc
definitiveOrPermissionary
String
Definitive or permissionary
rg
String
RG
rgMask
String
RG mask
rgIssuingAuthority
String
RG issuingAuthority
rgIssueState
String
RG issue state
rgNumberAuthorityState
String
RG number authority state
cpf
String
CPF
cpfMask
String
CPF mask
registrationNumber
String
Registration number
category
String
Category
nationality
String
Nationality
fatherName
String
Father name
motherName
String
Mother name
mirrorNumber
String
Mirror number
notes
String
Notes
placeOfIssue
String
Place of issue
securityNumber
String
Security number
renachNumber
String
Renach number
cnhIssueState
String
CNH issue state
birthDate
String
Birth date
birthPlace
String
Birth place
cpf
String
CPF
cpfMask
String
CPF mask
department
String
Department
documentTypeRgFront
String
Document type RG front
fatherName
String
Father name
federativeUnit
String
Federative Unit
footerRgBack
String
Footer RG Back
graphicName
String
Graphic Name
headerRgFront
String
Header RG front
institute
String
Institute
issueDate
String
Issue date
issueState
String
Issue state
issuingAuthority
String
Issuing Authority
issuingAuthorityHeader
String
Issuing Authority Header
lawRgBack
String
Law RG back
motherName
String
Mother name
name
String
Name
parentsSeparator
String
Parents separator
referenceDocument
String
Reference Document
rg
String
RG
rgIssueState
String
RG issue state
rgIssuingAuthority
String
RG issue authority
rgMask
String
RG mask
via
String
Via