Example: Centering And Scaling Images On iOS Based On Detected Faces

A couple of years ago when Core Image and face detection were added with iOS 5 and I posted a simple tutorial on how to use face detection.

Here’s a neat little example utilizing core image face detection from Dan Hassin called FaceImageView.

What FaceImageView does is allow you to set up a view that automatically scales an image within the defined bounds keeping detected faces within view by default centering the view on the faces.

Here’s an image from the readme showing this scaling in action:
FaceImageView

You can find FaceImageView on Github here.

A neat little library that could be handy if you’re working on an app that involves photo taking.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Example: Centering And Scaling Images On iOS Based On Detected Faces

©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *