Get Updates By E-mail 

Article Written By:
Johann Dowa

Example Source Code: Using Face Detection To Create The Illusion Of Real 3D On iOS Devices

  •  
  •  
  •  
  •  
  •  

Early last year an app known as i3D hit the app stores demonstrating “monocular 3D” that uses face detection to provide the illusion of real 3D.

With iOS 5 Apple added Core Image and face detection right into the iOS SDK and Edwin Vermeer has created an example project demonstrating this principle by using a modified version of Apple’s example project SquareCam.

What the example does is estimate the distance and angle of your face from the device, and modify an image and shadow based on those calculations.

Here’s a video demonstrating the example in action:

You can download the example from Github here, and read more about it on Edwin’s blog.

You can find the i3D app here, and Apple’s SquareCam example here.

A pretty cool effect.  Thanks to Edwin for the submission.


  •  
  •  
  •  
  •  
  •  

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