MBIDocumentDetector
@interface MBIDocumentDetector : MBIQuadWithSizeDetector <NSCopying>
Detector that can perform detection of card documents, cheques, papers, etc.
-
Unavailable
Undocumented
Declaration
Objective-C
MB_INIT_UNAVAILABLE
-
Declaration
Objective-C
- (nonnull instancetype)initWithDocumentSpecifications: (nonnull NSArray<__kindof MBIDocumentSpecification *> *) documentSpecifications;
Swift
init(documentSpecifications: [MBIDocumentSpecification])
Parameters
documentSpecifications
Document specifications that describe documents that should be detected.
-
Document detector result
Declaration
Objective-C
@property (nonatomic, strong, readonly) MBIDocumentDetectorResult *_Nonnull result;
Swift
var result: MBIDocumentDetectorResult { 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 (nonatomic) NSInteger numStableDetectionsThreshold;
Swift
var numStableDetectionsThreshold: Int { get set }
-
Document specifications describe the documents that should be detected with document detector.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) NSArray<__kindof MBIDocumentSpecification *> *documentSpecifications;
Swift
var documentSpecifications: [MBIDocumentSpecification] { get }