Drawing on Top of the Video Preview

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 is a companion discussion topic for the original entry at https://nsscreencast.com/episodes/297-camera-capture-drawing-on-top