MBMrtdDetector


@interface MBMrtdDetector : MBQuadWithSizeDetector <NSCopying>

Detector that can perform detection of Machine Readable Travel Documents (MRTD).

  • Undocumented

    Declaration

    Objective-C

    MB_INIT

    Swift

    init()
  • MRTD detector result

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) MBMrtdDetectorResult *_Nonnull result;

    Swift

    var result: MBMrtdDetectorResult { get }
  • Defines whether full document will be detected. If set to false, result will contain location of Machine Readable Zone only. If set to true, result will contain location of entire document.

    Default: YES

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL detectFullDocument;

    Swift

    var detectFullDocument: Bool { get set }
  • Enable detection correction with card detector. When this option is enabled, after MRTD detector has found the document, it will internally use MBDocumentDetector to additionally correct document location estimated from detected MRZ location. Note that although enabling this option will usually improve detection accuracy, it may be possible that for some use cases accuracy will be lower.

    Default: NO

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL useCardDetector;

    Swift

    var useCardDetector: Bool { get set }
  • Sets the mrtd specifications. Mrtd specifications describe the images that should be returned by the detector.

    Declaration

    Objective-C

    - (void)setMrtdSpecifications:
        (nonnull NSArray<__kindof MBMrtdSpecification *> *)mrtdSpecifications;

    Swift

    func setMrtdSpecifications(_ mrtdSpecifications: [MBMrtdSpecification])

    Parameters

    mrtdSpecifications

    mrtd specifications