When iOS 5 was released Core Image was added with face detection and I posted this tutorial.
Here’s a handy UIImageView category that utilizes Core Image face detection adding a Face Aware view that automatically centers upon faces detected within the image called UIImageView_FaceAwareFill from Julio Andres.
Here’s an image from the readme showing different UIImageView fill modes with the face aware fill added by the category:
You can find UIImageView_FaceAwareFill on Github here.
An example is included, and if you have problems with face detection broken on a 64-bit device you may want to try suggestions on this Stack Overflow post.
A handy category for easy centering on faces within an image.
- Open Source iOS UIImageView Category Adding Easy Asynchronous Image Downloading
- iOS UI Control For Easily Creating A Paged Gallery View With Built In Asynchronous Image Downloading
- iOS Library For Adding High Performance Shadow And Reflect Effects To UIImageViews
- Example: Centering And Scaling Images On iOS Based On Detected Faces
- Best Resources In iOS Development – July 30th, 2012
Original article: Open Source UIImageView Category That Makes It Easy Center On Faces Within The Image
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





