MBRecognizerCollection
Objective-C
@interface MBRecognizerCollection : NSObject <NSCopying>
Swift
class MBRecognizerCollection : NSObject, NSCopying
Settings class containing settings related to scanner behaviour
-
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 (nonatomic, strong) 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 (nonatomic) BOOL allowMultipleResults;
Swift
var allowMultipleResults: Bool { get set }
-
Timeout interval in which the partial scanning results will be returned to the user. If <= 0.0, no timeout event will be reported.
Default: 0 seconds, which means no timeout will be reported.
Declaration
Objective-C
@property (nonatomic) NSTimeInterval partialRecognitionTimeout;
Swift
var partialRecognitionTimeout: TimeInterval { get set }
-
Recognition debug mode.
This method is for debugging and testing purposes only. Please do not use it because calling it with wrong parameter might cause scanning loop to never terminate.
Default: MBRecognitionDebugModeDefault
Declaration
Objective-C
@property (nonatomic) MBRecognitionDebugMode recognitionDebugMode;
Swift
var recognitionDebugMode: MBRecognitionDebugMode { 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 MBFrameQualityEstimationModeDefault
Declaration
Objective-C
@property (nonatomic) MBFrameQualityEstimationMode frameQualityEstimationMode;
Swift
var frameQualityEstimationMode: MBFrameQualityEstimationMode { get set }