MBRecognizerCollection


@interface MBRecognizerCollection : NSObject <NSCopying>

Settings class containing settings related to scanner behaviour

  • Unavailable

    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 (nonatomic, strong, readwrite)
        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, assign, unsafe_unretained, readwrite)
        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, assign, unsafe_unretained, readwrite)
        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, assign, unsafe_unretained, readwrite)
        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 PPFrameQualityEstimationModeDefault

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        MBFrameQualityEstimationMode frameQualityEstimationMode;

    Swift

    var frameQualityEstimationMode: MBFrameQualityEstimationMode { get set }