MBPQuadDetectorSubview
Objective-C
@protocol MBPQuadDetectorSubview <NSObject>
Swift
protocol MBPQuadDetectorSubview : NSObjectProtocol
Protocol for processing MBPDisplayableQuadDetection. Subviews implementing this protocol process and draw quad on the screen (e.g. viewfinder drawing document outlining)
-
This method should be called when MBPDisplayableQuadDetection is obtained and quad need to be drawn/redrawn.
Declaration
Objective-C
- (void)detectionFinishedWithDisplayableQuad: (MBPDisplayableQuadDetection *)displayableQuadDetection;Swift
func detectionFinished(withDisplayableQuad displayableQuadDetection: MBPDisplayableQuadDetection!) -
This method should be called when MBPDisplayableQuadDetection is obtained and quad need to be drawn/redrawn with camera preview zoom enabled by setting previewZoomScale property on cameraSettings.
Declaration
Objective-C
- (void)detectionFinishedWithDisplayableQuad: (MBPDisplayableQuadDetection *)displayableQuadDetection originalRectangle:(CGRect)originalRect relativeRectangle:(CGRect)relativeRectangle;Swift
func detectionFinished(withDisplayableQuad displayableQuadDetection: MBPDisplayableQuadDetection!, originalRectangle originalRect: CGRect, relativeRectangle: CGRect)
View on GitHub