MBIDetectionRecognizerRunnerDelegate
@protocol MBIDetectionRecognizerRunnerDelegate <NSObject>
Protocol for obtaining detection results
-
Called when Scanning library finishes detection of objects. Detection cycle happens before recognition cycle and it attempts to find the location of specific object on an image. Since detection and recognition are two separate events, it is possible for detection to be successful while recognition can fail (not vice versa).
NOTE: This method is called on background processing thread. Make sure that you dispatch all your UI API calls to main thread.
Returned MBIDisplayableQuadDetection object.
Declaration
Objective-C
- (void)recognizerRunner:(nonnull MBIRecognizerRunner *)recognizerRunner didFinishDetectionWithDisplayableQuad: (nonnull MBIDisplayableQuadDetection *)displayableQuad;Swift
optional func recognizerRunner(_ recognizerRunner: MBIRecognizerRunner, didFinishDetectionWithDisplayableQuad displayableQuad: MBIDisplayableQuadDetection!)Parameters
recognizerRunnerrecognizerRunner recognizer runner object responsible for scanning
displayableQuaddisplayable quad object detection containing information of detection (i.e. location)
-
Called when Scanning library finishes detection of objects. Detection cycle happens before recognition cycle and it attempts to find the location of specific object on an image. Since detection and recognition are two separate events, it is possible for detection to be successful while recognition can fail (not vice versa).
NOTE: This method is called on background processing thread. Make sure that you dispatch all your UI API calls to main thread.
Returned MBIDisplayablePointsDetection object.
Declaration
Objective-C
- (void)recognizerRunner:(nonnull MBIRecognizerRunner *)recognizerRunner didFinishDetectionWithDisplayablePoints: (nonnull MBIDisplayablePointsDetection *)displayablePoints;Swift
optional func recognizerRunner(_ recognizerRunner: MBIRecognizerRunner, didFinishDetectionWithDisplayablePoints displayablePoints: MBIDisplayablePointsDetection!)Parameters
recognizerRunnerrecognizerRunner recognizer runner object responsible for scanning
displayablePointspoints object detection containing information of detection (i.e. location)
-
Called when Scanning library fails to detect any object with any of the currently active recognizers.
NOTE: This method is called on background processing thread. Make sure that you dispatch all your UI API calls to main thread.
Declaration
Objective-C
- (void)recognizerRunnerDidFailDetection: (nonnull MBIRecognizerRunner *)recognizerRunner;Swift
optional func recognizerRunnerDidFailDetection(_ recognizerRunner: MBIRecognizerRunner)Parameters
recognizerRunnerRecognizer runner object responsible for scanning
View on GitHub
MBIDetectionRecognizerRunnerDelegate Protocol Reference