I was checking out the CIDetector API in iOS5, specifically using it with an AVCaptureSession to detect faces in video. I’d never played with the AV Foundation framework before, but it was pretty straight forward to hook up the front camera on the phone as an
AVCaptureDevice and get the frames through an
However I ran into issues when trying to get
CIDetector to find faces in the
CIImage from the video. Eventually I came across the Apple SquareCam sample which contained the solution!