wangjunge / DSFacialGestureDetector

CIDetector with streaming video

Home Page:http://dannyshmueli.com/blog/2014/10/23/cidetector-with-live-video-uifacialgestuures/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DSFacialGestureDetector

In iOS7 Apple introduced new face features detection to the CIDetecor.

CIDetectorEyeBlink, CIDetectorSmile

Ever since i was wondering if i could "feed" it streaming video and maybe make NEW kind of gestures- facial gestures.

This is a basic version of it:

ScreenShot

Installing:

Using cocoapods:

pod 'DSFacialGestureDetector'

or import all the files under the Detector directory to your project.

Using:

In your view controler:

  1. #import <DSFacialGestureDetector/DSFacialGesturesDetector.h>

  2. implement: <DSFacialDetectorDelegate>

  3. init:

self.facialGesturesDetector = [DSFacialGesturesDetector new];
self.facialGesturesDetector.delegate = self;
self.facialGesturesDetector.cameraPreviewView = self.cameraPreview;
NSError *error;
[self.facialGesturesDetector startDetection:&error];

See also example project.

About

CIDetector with streaming video

http://dannyshmueli.com/blog/2014/10/23/cidetector-with-live-video-uifacialgestuures/

License:MIT License


Languages

Language:Objective-C 97.2%Language:Ruby 2.8%