MBIMrtdDetector


@interface MBIMrtdDetector : MBIQuadWithSizeDetector <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 (nonatomic, strong, readonly) MBIMrtdDetectorResult *_Nonnull result;

    Swift

    var result: MBIMrtdDetectorResult { 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 (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 MBIDocumentDetector 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 (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 MBIMrtdSpecification *> *)mrtdSpecifications;

    Swift

    func setMrtdSpecifications(_ mrtdSpecifications: [MBIMrtdSpecification])

    Parameters

    mrtdSpecifications

    mrtd specifications