iOS5から使えるようになったCIDetectorがiOS7で更に進化し、笑顔やまばたき(目をつぶっているかどうか)を検出可能となりました。 すごく簡単に実装できる上に処理も遅くないのでいろいろな使い道があると思います。 下準備 まずCoreImageフレームワークをプロジェクトに追加しておきます。 検出 CIDetector *detector = [CIDetector detectorOfType:CIDetectorTypeFace context:nil options:@{CIDetectorAccuracy: CIDetectorAccuracyLow}]; CIImage* image = [CIImage imageWithCGImage:uiimage.CGImage]; NSArray *features = [detector featuresInImage:ima
![笑顔やまばたきも!iPhoneカメラでカンタン顔認識 - ぴよログ](https://cdn-ak-scissors.b.st-hatena.com/image/square/ded41b3d0d14b87d76ff6c708f71b44202acc535/height=288;version=1;width=512/https%3A%2F%2Fwww.evernote.com%2Fshard%2Fs15%2Fsh%2F96946bf3-64ec-4d8e-ad00-0959d236e3c9%2Ffe5a26744a92398d83e1c242231e3441%2Fdeep%2F0%2FIMG_1252.png)