Developer's Documentation for free mobile OCR SDK

Documentation Menu

addSampleBuffer method of the RTRRecognitionService 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:didOutputSampleBuffer:fromConnection: method. The service will pick the frames it needs from the sequence of the frames you supply.

note 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.