MBCRecognizerCollection

Objective-C


@interface MBCRecognizerCollection : NSObject <NSCopying>

Swift

class MBCRecognizerCollection : NSObject, NSCopying

Settings class containing settings related to scanner behaviour

  • Contains MBCRecognizer 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

    MBCRecognizer.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<MBCRecognizer *> *_Nonnull recognizerList;

    Swift

    var recognizerList: [MBCRecognizer] { 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: MBCRecognitionDebugModeDefault

    Declaration

    Objective-C

    @property (nonatomic) MBCRecognitionDebugMode recognitionDebugMode;

    Swift

    var recognitionDebugMode: MBCRecognitionDebugMode { 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 MBCFrameQualityEstimationModeDefault

    Declaration

    Objective-C

    @property (nonatomic) MBCFrameQualityEstimationMode frameQualityEstimationMode;

    Swift

    var frameQualityEstimationMode: MBCFrameQualityEstimationMode { get set }