Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments