如何在 iOS 上执行面部识别? [英] How can I perform facial recogntion on iOS?

查看:31
本文介绍了如何在 iOS 上执行面部识别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始开发一款适用于 iOS 的应用程序,该应用程序可以从照片或 iPhone/iPad 相机中识别人脸.

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

OpenCV 和 Core Image(在 iOS 5.0 中)等现有解决方案提供图像内的面部检测,但我找不到将人脸与人相匹配的库或示例.

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.

iOS 是否存在这种执行面部识别而不仅仅是检测的方法?

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

推荐答案

在 iOS 5 上,您可以使用 CoreImage(CIDetector、CIFeature、CIFaceFeature 应命名为相关关键字)来完成该任务.查看 Apple 的 SquareCam 示例应用程序,它包括人脸检测.如果您的目标是较旧的 iOS 版本,那么 openCV 似乎是一个不错的方法.

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

编辑_:啊,太糟糕了.CoreImage 只能检测人脸,不能识别人脸.但也许你可以基于 CoreImage 构建一个解决方案...

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

这篇关于如何在 iOS 上执行面部识别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆