MBRecognizerRunner
Objective-C
@interface MBRecognizerRunner : NSObject
Swift
class 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.
-
Initializes the recognizer runner
Declaration
Objective-C
- (nonnull instancetype)initWithRecognizerCollection: (nonnull MBRecognizerCollection *)recognizerCollection;
Swift
init(recognizerCollection: MBRecognizerCollection)
-
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)