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:

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.
- Programming Spinning, Scaling Images & Buttons: Code Snippet
- iOS Library For Adding High Performance Shadow And Reflect Effects To UIImageViews
- Tutorial And Tool: Properly Scaling Retina Display Graphics
- iPhone Game Development With Core Animation
- Tutorial: Easy Face Detection With Core Image In iOS 5 (Example Source Code Provided)
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.




