SBSDKChequeRecognizer

@interface SBSDKChequeRecognizer : NSObject

A realtime detector and recognizer for U.S. Cheques. It detects cheques on CMSampleBufferRef object from an AVFoundation video stream. After successful detection it runs a recognition operation to extract the data fields of the detected credit card.

  • Detects and recognizes a U.S. Cheque in the given image.

    Declaration

    Objective-C

    - (nullable SBSDKChequeRecognizerResult *)
        recognizeChequeOnBuffer:(nonnull CMSampleBufferRef)sampleBufferRef
                    orientation:(AVCaptureVideoOrientation)videoOrientation;

    Swift

    func recognizeCheque(on sampleBufferRef: CMSampleBuffer, orientation videoOrientation: AVCaptureVideoOrientation) -> SBSDKChequeRecognizerResult?

    Parameters

    sampleBufferRef

    The video frame or still image as CMSampleBufferRef object to detect a cheque on.

    videoOrientation

    The orientation of the video frame.

    Return Value

    A SBSDKChequeRecognizerResult object containing the field data or nil if detection or recognition failed.