Developer's Documentation for free mobile OCR SDK

Documentation Menu

addSampleBuffer method of the RTRTextCaptureService protocol

Sends the video frame obtained from camera to the service. Call this method to pass on the video sample buffer received by an AVCaptureVideoDataOutputSampleBufferDelegate object via the captureOutput method. The service will pick the frames it needs from the sequence of the frames you supply.

 Note: The video output must be configured to use the kCVPixelFormatType_32BGRA video pixel format. Other pixel formats are currently not supported.

- (void)addSampleBuffer:(CMSampleBufferRef)sampleBuffer;

Parameters

sampleBuffer

A CMSampleBuffer object containing the video frame data.