Skip to content

OpenCV Detect Circle and Smile

opencv-logo2Here’s a quick/easy demo project using OpenCV to detect a circle or smile (two different view controllers):

In the app delegate, you specify which view controller to make the root controller…

_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// _window.rootViewController = [ColorCircleViewController new];
_window.rootViewController = [DetectSmileViewController new];
// _window.rootViewController = [TryYourselfViewController new];

There’s even a ‘try yourself’ option. By default it just blurs the image, but he includes it to test things out for yourself.