Comment on page
PhilippinesSeafarerIdentificationDocumentModel
A class derived from DocumentModel containing details specific to the Philippines seafarer identification document
@objc final public class PhilippinesSeafarerIdentificationDocumentModel : DocumentModel {
@objc final public var mrzLine1: String? { get }
@objc final public var mrzLine2: String? { get }
@objc final public var mrzLine3: String? { get }
@objc final public var documentType: String? { get }
@objc final public var issuingCountryCode: String? { get }
@objc final public var identityNumber: String? { get }
@objc final public var identityNumberCheckDigit: Int { get }
@objc final public var optionalData1: String? { get }
@objc final public var dateOfBirth: Date? { get }
@objc final public var dateOfBirthCheckDigit: Int { get }
@objc final public var sex: Sex { get }
@objc final public var dateOfExpiry: Date? { get }
@objc final public var dateOfExpiryCheckDigit: Int { get }
@objc final public var nationality: String? { get }
@objc final public var optionalData2: String? { get }
@objc final public var compositeCheckDigit: Int { get }
@objc final public var surname: String? { get }
@objc final public var names: String? { get }
@objc final public var portraitBackImage: UIImage? { get }
@objc final public var documentBackImage: UIImage? { get }
@objc final public var croppedDocumentBackImage: UIImage? { get }
@objc final public var portraitBackImagePath: String? { get }
@objc final public var documentBackImagePath: String? { get }
@objc final public var croppedDocumentBackImagePath: String? { get }
@objc override final public func saveImages()
override final public func encode(to encoder: Encoder) throws
}
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
Name | Type | Description | Data source |
String? | The top MRZ line of the document. | MRZ | |
String? | The middle MRZ line of the document. | MRZ | |
String? | The bottom MRZ line of the document. | MRZ | |
String? | The document type as extracted from the MRZ. | MRZ | |
String? | The country code that issued the document. | MRZ | |
String? | The identity number as extracted from the MRZ. | MRZ | |
Int | A check digit, used to verify the OCR integrity of the identity number. | MRZ | |
String? | Uncategorized data found on the MRZ top line. | MRZ | |
Date? | The date of birth of the subject as extracted from the MRZ. | MRZ | |
Int | A check digit, used to verify the OCR integrity of the date of birth. | MRZ | |
The sex of the subject as extracted from the MRZ. | MRZ | ||
Date? | The date of expiry of the document as extracted from the MRZ. | MRZ | |
Int | A check digit, used to verify the OCR integrity of the date of expiry. | MRZ | |
String? | The nationality country code of the subject as extracted from the MRZ. | MRZ | |
String? | Uncategorized data found on the MRZ middle line. | MRZ | |
Int | A check digit, used to verify the OCR integrity of the entire MRZ. | MRZ | |
String? | The surname of the subject as extracted from the MRZ. | MRZ | |
String? | The names of the subject as extracted from the MRZ. | MRZ | |
UIImage? | Back of document | ||
UIImage? | Contains an original image of the back side of the document. | Back of document | |
UIImage? | Back of document | ||
String? | Local storage | ||
String? | Local storage | ||
String? | Local storage |
Signature | Return Type | Description |
Void | Saves the portraitBackImage, documentBackImage and croppedDocumentBackImage and populates their respective path variables. | |
Void | Encodes the model using the encoder provided. Used to convert the model to JSON. |
@objc final public var mrzLine1: String? { get }
Example:
"I<UTOD231458907<<<<<<<<<<<<<<<"
The top MRZ line of the document.
@objc final public var mrzLine2: String? { get }
Example:
"7408122F1204159UTO<<<<<<<<<<<6"
The middle MRZ line of the document.
@objc final public var mrzLine3: String? { get }
Example:
"ERIKSSON<<ANNA<MARIA<<<<<<<<<<"
The bottom MRZ line of the document.
@objc final public var documentType: String? { get }
Example:
"IS"
The document type as extracted from the MRZ.
@objc final public var issuingCountryCode: String? { get }
Example:
"PHL"
The country code that issued the document.
@objc final public var identityNumber: String? { get }
Example:
"123456789"
The identity number as extracted from the MRZ.
@objc final public var identityNumberCheckDigit: Int { get }
Example:
1
A check digit, used to verify the OCR integrity of the identity number.
@objc final public var optionalData1: String? { get }
Example:
"A1B2C3D4"
Uncategorized data found on the MRZ top line.
@objc final public var dateOfBirth: Date? { get }
Example:
1990/01/01
The date of birth of the subject as extracted from the MRZ.
@objc final public var dateOfBirthCheckDigit: Int { get }
Example:
1
A check digit, used to verify the OCR integrity of the date of birth.
Example:
Sex.Female
The sex of the subject as extracted from the MRZ.
@objc final public var dateOfExpiry: Date? { get }
Example:
1990/01/01
The date of expiry of the document as extracted from the MRZ.
@objc final public var dateOfExpiryCheckDigit: Int { get }
Example:
1
A check digit, used to verify the OCR integrity of the date of expiry.
@objc final public var nationality: String? { get }
Example:
"PHL"
The nationality country code of the subject as extracted from the MRZ.
@objc final public var optionalData2: String? { get }
Example:
"A1B2C3D4"
Uncategorized data found on the MRZ middle line.
@objc final public var compositeCheckDigit: Int { get }
Example:
1
A check digit, used to verify the OCR integrity of the entire MRZ.
@objc final public var surname: String? { get }
Example:
"DOE"
The surname of the subject as extracted from the MRZ.
@objc final public var names: String? { get }
Example:
"JOHN"
The names of the subject as extracted from the MRZ.
@objc final public var portraitBackImage: UIImage? { get }
@objc final public var documentBackImage: UIImage? { get }
Contains an original image of the back side of the document.
@objc final public var croppedDocumentBackImage: UIImage? { get }
@objc final public var portraitBackImagePath: String? { get }
@objc final public var documentBackImagePath: String? { get }
@objc final public var croppedDocumentBackImagePath: String? { get }
@objc override final public func saveImages()
Saves the portraitBackImage, documentBackImage and croppedDocumentBackImage and populates their respective path variables.
override final public func encode(to encoder: Encoder) throws
Encodes the model using the encoder provided. Used to convert the model to JSON.