Posted by: bearc0025 | June 17, 2013

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): https://github.com/lukagabric/iOS-OpenCV

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: