MBDocumentDetector


@interface MBDocumentDetector : MBQuadWithSizeDetector <NSCopying>

Detector that can perform detection of card documents, cheques, papers, etc.

  • Undocumented

    Declaration

    Objective-C

    MB_INIT_UNAVAILABLE
  • Declaration

    Objective-C

    - (nonnull instancetype)initWithDocumentSpecifications:
        (nonnull NSArray<__kindof MBDocumentSpecification *> *)
            documentSpecifications;

    Swift

    init(documentSpecifications: [MBDocumentSpecification])

    Parameters

    documentSpecifications

    Document specifications that describe documents that should be detected.

  • Document detector result

    Declaration

    Objective-C

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

    Swift

    var result: MBDocumentDetectorResult { get }
  • Defines how many times the same document should be detected before the detector returns this document as a result of the deteciton

    Higher number means more reliable detection, but slower processing

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger numStableDetectionsThreshold;

    Swift

    var numStableDetectionsThreshold: UInt { get set }
  • Document specifications describe the documents that should be detected with document detector.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull)
        NSArray<__kindof MBDocumentSpecification *> *documentSpecifications;

    Swift

    var documentSpecifications: [MBDocumentSpecification] { get }