Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I perform facial recogntion on iOS?

I've started work on an application for iOS that would recognize faces from a photo or from the iPhone / iPad camera.

Existing solutions like OpenCV and Core Image (in iOS 5.0) provide facial detection within an image, but I can't find a library or example that matches a face with a person.

Does such a means of performing facial recognition, not just detection, exist for iOS?

like image 666
Mateus Nunes Avatar asked Nov 05 '11 14:11

Mateus Nunes


People also ask

Can iPhone scan faces?

With iOS 15.4 and iPhone 12 or later, Face ID even works with face masks. To start using Face ID, you need to first enroll your face. You might do this during the initial set up process, or at a later time by going to Settings > Face ID & Passcode. To unlock your device using Face ID, simply glance at it.

How do you do face recognition?

From Settings, tap Biometrics and security, and then tap Face recognition. Tap Continue. If you don't already have a secure screen lock, you will need to set one up. Hold the phone 8-20 inches away and position your face inside the circle.


1 Answers

On iOS 5 you can use CoreImage (CIDetector, CIFeature, CIFaceFeature should be named as the relevant keywords) for that task. Check out the SquareCam example App from Apple, it includes face detection. If you're targeting older iOS versions, openCV seems to be a good approach.

http://developer.apple.com/library/ios/#samplecode/SquareCam/Introduction/Intro.html

Edit_: Argh, soory. CoreImage can only detect faces but not recognize them. But maybe you can build a solution based on CoreImage...

like image 103
Björn Kaiser Avatar answered Nov 01 '22 12:11

Björn Kaiser