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 recognition service. Call this method to pass on the information provided by the captureOutput method of the AVCaptureVideoDataOutputSampleBufferDelegate protocol. The recognition service will pick the frames it needs from the succession of the frames you supply.

We recommend using the AVCaptureSessionPreset1280x720 preset for the camera settings.

- (void)addSampleBuffer:(CMSampleBufferRef)sampleBuffer;

Parameters

sampleBuffer

A CMSampleBuffer object containing the video frame data. Only kCVPixelFormatType_32BGRA pixel format is currently supported.