AVManager

public protocol AVManager : AnyObject

To be implemented if custom AVFoundation logic is needed. This may be desireable if using RealTimeEngine in tandem with another class or library that requires CMSampleBuffers for processing.

  • The AVCaptureVideoPreviewLayer displayed to the user

    Declaration

    Swift

    var previewLayer: AVCaptureVideoPreviewLayer { get }
  • The quality of the previewLayer video session.

    Declaration

    Swift

    var cameraQuality: AVCaptureSession.Preset { get set }
  • The underlying capture session providing previewLayer it’s video feed

    Declaration

    Swift

    var captureSession: AVCaptureSession { get }
  • The delegate to receive the CMSampleBuffers for processing.

    Note: If you are creating a custom object to conform to AVManager, you must manually set SwiftyTesseractRTE as it’s delegate for SwiftyTesseractRTE to receive the CMSampleBuffers or have another delegate directly pass the paramters of capture(_:didOutput:from:) to RealTimeEngine‘s implementation otherwise they will not be received to be processed for OCR

    Declaration

    Swift

    var delegate: AVCaptureVideoDataOutputSampleBufferDelegate? { get set }