SBSDKMultipleObjectsDetector

@interface SBSDKMultipleObjectsDetector : NSObject

Detects multiple non-overlapping rectangular objects within an image. Like a bunch of business cards.

  • Detects multiple non-overlapping rectangular objects within an image. Like a bunch of business cards.

    Declaration

    Objective-C

    - (NSArray<SBSDKPolygon *> *_Nonnull)detectOnImage:(nonnull UIImage *)image;

    Swift

    func detect(on image: UIImage) -> [SBSDKPolygon]

    Parameters

    image

    The image on which multiple rectangular objects should be detected.

    Return Value

    An array of detected SBSDKPolygon objects.

  • Detects multiple non-overlapping rectangular objects within a samplebuffer. Like a bunch of business cards.

    Declaration

    Objective-C

    - (NSArray<SBSDKPolygon *> *_Nonnull)
        detectInBuffer:(nonnull CMSampleBufferRef)sampleBufferRef
           orientation:(AVCaptureVideoOrientation)videoOrientation;

    Swift

    func detect(in sampleBufferRef: CMSampleBuffer, orientation videoOrientation: AVCaptureVideoOrientation) -> [SBSDKPolygon]

    Parameters

    sampleBufferRef

    The sample buffer on which multiple rectangular objects should be detected.

    videoOrientation

    The video orientation for the given sample buffer.

    Return Value

    An array of detected SBSDKPolygon objects.