MRZData
MRZData is a result class that contains the parsed MRZ information.
Definition
Assembly: DynamsoftMRZScanner.aar
Namespace: com.dynamsoft.mrzscanner.ui
class MRZData
Methods
| Method | Description |
|---|---|
getFirstName |
Returns the first name of the user of the MRZ document. |
getLastName |
Returns the last name of the user of the MRZ document. |
getSex |
Returns the sex of the user of the MRZ document. |
getIssuingState |
Returns the issuing state of the MRZ document. |
getNationality |
Returns the nationality of the user of the MRZ document. |
getDateOfBirth |
Returns the date of birth of the user of the MRZ document. |
getDateOfExpire |
Returns the expiry date of the MRZ document. |
getDocumentType |
Returns the type of MRZ document. |
getDocumentNumber |
Returns the MRZ document number. |
getAge |
Returns the age of the user of the MRZ document. |
getMrzText |
Returns the raw text of the MRZ. |
getIssuingStateRaw |
Returns the raw ICAO issuing state code as it appears in the MRZ. |
getNationalityRaw |
Returns the raw ICAO nationality code as it appears in the MRZ. |
getOptionalData1 |
Returns the first optional data field from the MRZ. |
getOptionalData2 |
Returns the second optional data field from the MRZ. |
getPersonalNumber |
Returns the personal number from the MRZ. |
getFirstName
Returns the first name of the user of the MRZ document.
String getFirstName();
Return Value
The first name.
getLastName
Returns the last name of the user of the MRZ document.
String getLastName();
Return Value
The last name.
getSex
Returns the sex of the user of the MRZ document.
String getSex();
Return Value
The sex.
getIssuingState
Returns the issuing state of the MRZ document.
String getIssuingState();
Return Value
The issuing state.
getNationality
Returns the nationality of the user of the MRZ document.
String getNationality();
Return Value
The nationality.
getDateOfBirth
Returns the date of birth of the user of the MRZ document.
String getDateOfBirth();
Return Value
The date of birth.
getDateOfExpire
Returns the expiry date of the MRZ document.
String getDateOfExpire();
Return Value
The date of expiry.
getDocumentType
Returns the type of MRZ document.
String getDocumentType();
Return Value
The type of document, such as ID cards or passports.
getDocumentNumber
Returns the MRZ document number.
String getDocumentNumber();
Return Value
The document number.
getAge
Returns the age of the user of the MRZ document.
int getAge();
Return Value
The age.
getMrzText
Returns the raw text of the MRZ.
String getMrzText();
Return Value
The raw text of the MRZ.
getIssuingStateRaw
Returns the raw ICAO issuing state code as it appears in the MRZ (e.g. CAN, USA), before conversion to a full country name.
String getIssuingStateRaw();
Return Value
The raw ICAO issuing state code.
getNationalityRaw
Returns the raw ICAO nationality code as it appears in the MRZ (e.g. CAN, USA), before conversion to a full country name.
String getNationalityRaw();
Return Value
The raw ICAO nationality code.
getOptionalData1
Returns the first optional data field from the MRZ. The content depends on the document type and issuing authority.
@Nullable
String getOptionalData1();
Return Value
The first optional data field, or null if not present.
getOptionalData2
Returns the second optional data field from the MRZ. The content depends on the document type and issuing authority.
@Nullable
String getOptionalData2();
Return Value
The second optional data field, or null if not present.
getPersonalNumber
Returns the personal number from the MRZ. This field is typically found on TD3 (passport) documents.
@Nullable
String getPersonalNumber();
Return Value
The personal number, or null if not present.