Episode #297

Drawing on Top of the Video Preview

Series: Camera Capture and Detection

14 minutes
Published on August 11, 2017

This video is only available to subscribers. Get access to this video and 586 others.

We learn how to convert a CMSampleBuffer into a CIImage and how to set up our CIDetector to detect rectangles. We then draw a box around the detected rectangle and discuss why adding simple subviews won't work with full screen sublayers.

This episode uses Xcode 9.0-beta3, Swift 4.