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:didOutputSampleBuffer:fromConnection: 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.
02.03.2022 12:59:15