MBCRecognizerRunner

Objective-C


@interface MBCRecognizerRunner : NSObject

Swift

class MBCRecognizerRunner : 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.

  • Initializes the recognizer runner

    Declaration

    Objective-C

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

    Swift

    init(recognizerCollection: MBCRecognizerCollection)
  • 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 MBCImage 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 MBCCoordinator.

    Declaration

    Objective-C

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

    Swift

    func processImage(_ image: MBCImage)

    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 MBCCoordinator.

    Declaration

    Objective-C

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

    Swift

    func processString(_ string: String)

    Parameters

    string

    string for processing

  • Method which is used to apply MBCSettings 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 MBCRecognizerCollection *)recognizerCollection;

    Swift

    func reconfigureRecognizers(_ recognizerCollection: MBCRecognizerCollection)