1

My goal is to process images from camera with Vision framework, add overlay images and record video with overlay images.

One way I found is with AVCaptureSession, with SampleBufferDelegate where in function

func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection)

image by image is processed, added overlay image and passed to AVAssetWriter to create video.

However, problem with this implementation is it can't be run in realtime because app become sluggish.

Is there better and faster way to do this?

NFilip
  • 427
  • 4
  • 15
  • Did you find a solution to this? I am also using this approach, and can draw over detected faces, but I am not able to add custom images over detected areas. Any help would be appreciated. – bhakti123 Oct 23 '18 at 14:17
  • No, I'm not sure but I think we canceled this project. – NFilip Oct 24 '18 at 10:03

0 Answers0