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

来源:互联网 发布:mac释放内存 编辑:程序博客网 时间:2024/05/21 09:37

http://maniacdev.com/2012/07/example-source-code-using-face-detection-to-create-the-illusion-of-real-3d-on-ios-devices/


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 addedCore 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.

DeliciousTwitterFacebookRedditLinkedInEmail

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 send a Tweet to @maniacdev on Twitter orsubmit the url here.

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

Leave a Reply

Your email address will not be published. Required fields are marked*



原创粉丝点击