MRZData
MRZData is a result class that is used to represent the parsed MRZ information.
Definition
Assembly: dynamsoft-mrz-scanner-bundle-react-native
interface MRZData
Properties
| Property | Type | Description |
|---|---|---|
firstName |
string | The first name of the MRZ document holder. |
lastName |
string | The last name of the MRZ document holder. |
sex |
string | The sex of the MRZ document holder. |
issuingState |
string | The issuing state (represented as the full name of the country/region) of the MRZ document. |
issuingStateRaw |
string | The raw ICAO issuing state code of the MRZ document. |
nationality |
string | The nationality (represented as the full name of the country/region) of the MRZ document holder. |
nationalityRaw |
string | The raw ICAO nationality code of the MRZ document holder. |
dateOfBirth |
string | The date of birth of the MRZ document holder. |
dateOfExpire |
string | The expiry date of the MRZ document. |
documentType |
string | The type of MRTD that the MRZ document is. |
documentNumber |
string | The MRZ document number. |
age |
number | The age of the MRZ document holder. |
mrzText |
string | The raw unparsed text of the MRZ. |
personalNumber |
string | The personal number field on the MRZ document. |
optionalData1 |
string | The first optional data field on the MRZ document. |
optionalData2 |
string | The second optional data field on the MRZ document. |
firstName
Represents the first name of the MRZ document holder.
firstName?: string
lastName
Represents the last name of the MRZ document holder.
lastName?: string
sex
Represents the sex of the MRZ document holder.
sex?: string
issuingState
Represents the issuing state of the MRZ document, expressed as the full name of the country/region.
issuingState?: string
issuingStateRaw
Represents the raw ICAO issuing state code as it appears in the MRZ (e.g. CAN, USA), before conversion to a full country name.
issuingStateRaw?: string
nationality
Represents the nationality of the MRZ document holder, expressed as the full name of the country/region.
nationality?: string
nationalityRaw
Represents the raw ICAO nationality code of the MRZ document holder (e.g. CAN, USA), before conversion to a full country name.
nationalityRaw?: string
dateOfBirth
Represents the date of birth of the MRZ document holder.
dateOfBirth?: string
dateOfExpire
Represents the expiry date of the MRZ document.
dateOfExpire?: string
documentType
Represents the type of MRZ document.
documentType?: string
documentNumber
Represents the MRZ document number.
documentNumber?: string
age
Represents the age of the MRZ document holder.
age?: number
mrzText
Represents the raw text of the MRZ.
mrzText?: string
personalNumber
Represents the personal number field on the MRZ document (where present). This field is encoded on TD1 and TD3 documents and is empty when the document does not carry a personal number.
personalNumber?: string
optionalData1
Represents the first optional data field on the MRZ document. Usage varies by issuing authority.
optionalData1?: string
optionalData2
Represents the second optional data field on the MRZ document. Usage varies by issuing authority.
optionalData2?: string