How can I perform facial recogntion on iOS?

…衆ロ難τιáo~ 提交于 2019-11-27 14:49:01

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

What OpenCV does is called "face detection." This is different than, but related to, face recognition, which is what you seem to want to do.

Face detection "detects" faces by finding the location of facial features such as the eyes, the mouth, etc. To "recognize" these faces, you then need to compare these features with a database of known faces, for which the features have already been detected.

I'm not aware of a face recognition library for iOS, and this is no easy feat. Even Apple's own iPhoto has, in my experience, very low accuracy.

However, if you only want to do face detection, or want to build your own facial recognition algorithm on top of a face detection library, iOS 5 also includes a face detection API. You can find it in the CoreImage framework.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!