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.