Table of contents

MRZData

MRZData is a result class that contains the parsed MRZ information.

Definition

Assembly: DynamsoftMRZScanner.xcframework

  • Objective-C
  • Swift
  1. @interface DSMRZData : NSObject
    
  2. class MRZData : NSObject
    

Properties

Property Type Description
firstName String The first name of the user of the MRZ document.
lastName String The last name of the user of the MRZ document.
sex String The sex of the user of the MRZ document.
issuingState String The issuing state of the MRZ document.
issuingStateRaw String The raw issuing state string as it appears in the MRZ.
nationality String The nationality of the user of the MRZ document.
nationalityRaw String The raw nationality string as it appears in the MRZ.
dateOfBirth String The date of birth of the user of the MRZ document.
dateOfExpire String The expiry date of the MRZ document.
documentType String The type of MRZ document.
documentNumber String The MRZ document number.
personalNumber String? The personal number from the MRZ document, if available.
optionalData1 String? The first optional data field from the MRZ, if available.
optionalData2 String? The second optional data field from the MRZ, if available.
age Int The age of the user of the MRZ document.
mrzText String The raw text of the MRZ.

firstName

The first name of the user of the MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* firstName;
    
  2. let firstName: String
    

lastName

The last name of the user of the MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* lastName;
    
  2. let lastName: String
    

sex

The sex of the user of the MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* sex;
    
  2. let sex: String
    

issuingState

The issuing state of the MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* issuingState;
    
  2. let issuingState: String
    

issuingStateRaw

The raw issuing state string as it appears in the MRZ, before any decoding or normalization.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* issuingStateRaw;
    
  2. let issuingStateRaw: String
    

nationality

The nationality of the user of the MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* nationality;
    
  2. let nationality: String
    

nationalityRaw

The raw nationality string as it appears in the MRZ, before any decoding or normalization.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* nationalityRaw;
    
  2. let nationalityRaw: String
    

dateOfBirth

The date of birth of the user of the MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* dateOfBirth;
    
  2. let dateOfBirth: String
    

dateOfExpire

The expiry date of the MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* dateOfExpire;
    
  2. let dateOfExpire: String
    

documentType

The type of MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* documentType;
    
  2. let documentType: String
    

documentNumber

The MRZ document number.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* documentNumber;
    
  2. let documentNumber: String
    

personalNumber

The personal number from the MRZ document. Returns nil if not present in the document.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable, readonly) NSString* personalNumber;
    
  2. let personalNumber: String?
    

optionalData1

The first optional data field from the MRZ. Returns nil if not present in the document.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable, readonly) NSString* optionalData1;
    
  2. let optionalData1: String?
    

optionalData2

The second optional data field from the MRZ. Returns nil if not present in the document.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable, readonly) NSString* optionalData2;
    
  2. let optionalData2: String?
    

age

The age of the user of the MRZ document.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) int age;
    
  2. let age: Int
    

mrzText

The raw text of the MRZ.

  • Objective-C
  • Swift
  1. @property (nonatomic, readonly) NSString* mrzText;
    
  2. let mrzText: String
    

This page is compatible for: