MBPRecognizerRunner
Objective-C
@interface MBPRecognizerRunner : NSObject
Swift
class MBPRecognizerRunner : 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 MBPRecognizerCollection *)recognizerCollection;
Swift
init(recognizerCollection: MBPRecognizerCollection)
-
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 MBPImage 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 MBPCoordinator.
Declaration
Objective-C
- (void)processImage:(nonnull MBPImage *)image;
Swift
func processImage(_ image: MBPImage)
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 MBPCoordinator.
Declaration
Objective-C
- (void)processString:(nonnull NSString *)string;
Swift
func processString(_ string: String)
Parameters
string
string for processing
-
Method which is used to apply MBPSettings 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 MBPRecognizerCollection *)recognizerCollection;
Swift
func reconfigureRecognizers(_ recognizerCollection: MBPRecognizerCollection)