MBRecognizerCollection
@interface MBRecognizerCollection : NSObject <NSCopying>
Settings class containing settings related to scanner behaviour
-
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithRecognizers:(NSArray<MBRecognizer *> *)recognizers NS_DESIGNATED_INITIALIZER;
Swift
init(recognizers: [MBRecognizer])
-
Contains MBRecognizer objects - each individual recognizer. On each video frame taken by device scamera, processing is performed by a series of recognizers. Ordering of these recognizers is specified by this array.
See
MBRecognizer.Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSArray<MBRecognizer *> *_Nonnull recognizerList;
Swift
var recognizerList: [MBRecognizer] { get set }
-
If NO, recognizer chain will stop when finds first valid scan results and will return just it. If YES, recognizer chain can sometimes return more than one scanning result.
Default: YES
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL allowMultipleResults;
Swift
var allowMultipleResults: Bool { get set }
-
Timeout interval in which the partial scanning results in PhotoPay will be returned to the user. If <= 0.0, no timeout event will be reported.
Default: 12 seconds in BlinkID and PhotoPay, 7.0 for PDF417, 0 for others.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSTimeInterval partialRecognitionTimeout;
Swift
var partialRecognitionTimeout: TimeInterval { get set }
-
Recognition mode.
Default: MBRecognitionModeDefault
Declaration
Objective-C
@property (assign, readwrite, nonatomic) MBRecognitionMode recognitionMode;
Swift
var recognitionMode: MBRecognitionMode { get set }
-
Frame quality estimation mode. If frame quality estimation is on, some video frames will be skipped, if frame quality estimator determines the quality is too low (i.e. frame is too blurry, too dark, or something similar).
The downside is that frame quality estimation spends some valuable CPU time.
Default PPFrameQualityEstimationModeDefault
Declaration
Objective-C
@property (assign, readwrite, nonatomic) MBFrameQualityEstimationMode frameQualityEstimationMode;
Swift
var frameQualityEstimationMode: MBFrameQualityEstimationMode { get set }