DSMRZCaptureMethod

@objc
public enum DSMRZCaptureMethod : Int

The method in which a Machine-Readable Zone should be captured, if at all

The Machine-Readable Zone appears on travel documents such as passports or passport cards. The MRZ will always be two or three lines and is often placed near the bottom of the document. Example:

P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<< L898902C<3UTO6908061F9406236ZE184226B<<<<<14

Important

For documents without an MRZ, .ignore should be used. When you need the MRZ, use .recognize. When you only need to verify that the MRZ exists, .detect is slightly faster.
  • MRZ is not detected at all during capture

    Declaration

    Swift

    case ignore
  • MRZ is detected, but not fully recognized

    Declaration

    Swift

    case detect
  • MRZ is recognized, decoded, and included in the final result

    Declaration

    Swift

    case recognize