MBRecognizerRunner


@interface MBRecognizerRunner : NSObject

Factory class containing static methods for creating camera view controllers. Camera view controllers created this way will be managed internally by the SDK, and input frames will be processed.

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull, readonly) MBRecognizerRunnerMetadataDelegates *metadataDelegates

    Swift

    var metadataDelegates: MBRecognizerRunnerMetadataDelegates { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, weak) id<MBScanningRecognizerRunnerDelegate> scanningRecognizerRunnerDelegate

    Swift

    weak var scanningRecognizerRunnerDelegate: MBScanningRecognizerRunnerDelegate? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<MBImageProcessingRecognizerRunnerDelegate> imageProcessingRecognizerRunnerDelegate

    Swift

    weak var imageProcessingRecognizerRunnerDelegate: MBImageProcessingRecognizerRunnerDelegate? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<MBStringProcessingRecognizerRunnerDelegate> stringProcessingRecognizerRunnerDelegate

    Swift

    weak var stringProcessingRecognizerRunnerDelegate: MBStringProcessingRecognizerRunnerDelegate? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, nullable) MBCoordinator *coordinator

    Swift

    var coordinator: MBCoordinator? { get set }
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Initializes the recognizer runner

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRecognizerCollection:
        (nonnull MBRecognizerCollection *)recognizerCollection;

    Swift

    init(recognizerCollection: MBRecognizerCollection)
  • Undocumented

    Declaration

    Objective-C

    - (void)resetState;

    Swift

    func resetState()
  • Undocumented

    Declaration

    Objective-C

    - (void)resetState:(BOOL)hard;

    Swift

    func resetState(_ hard: Bool)
  • Cancels all dispatched, but not yet processed image processing requests issued with processImage. NOTE: next call to processImage will resume processing.

    Declaration

    Objective-C

    - (void)cancelProcessing;

    Swift

    func cancelProcessing()
  • Processes a MBImage object synchronously using current settings. Since this method is synchronous, calling it from a main thread will switch the call to alternate thread internally and output a warning.

    Results are passed a delegate object given upon a creation of MBCoordinator.

    Declaration

    Objective-C

    - (void)processImage:(nonnull MBImage *)image;

    Swift

    func processImage(_ image: MBImage)

    Parameters

    image

    image for processing

  • Processes a NSString object synchronously using current settings. Since this method is synchronous, calling it from a main thread will switch the call to alternate thread internally and output a warning.

    Results are passed a delegate object given upon a creation of MBCoordinator.

    Declaration

    Objective-C

    - (void)processString:(nonnull NSString *)string;

    Swift

    func processString(_ string: String)

    Parameters

    string

    string for processing

  • Method which is used to apply MBSettings object given by currentSettings property

    Usual use case is to update settings on the fly, to perform some complex scanning functionality where a reconfiguration of the recognizers is needed.

    Declaration

    Objective-C

    - (void)reconfigureRecognizers:
        (nonnull MBRecognizerCollection *)recognizerCollection;

    Swift

    func reconfigureRecognizers(_ recognizerCollection: MBRecognizerCollection)