Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们必须创建一个应用程序,它可以拍照、识别人脸并以某种方式扭曲它。下面是一个例子:
http://itunes.apple.com/us/app/fatbooth/id372268904?mt=8
有任何想法吗?是否可以仅使用 OpenCV 库?
是的,您可以使用 OpenCV 做到这一点。首先,您需要检测人脸。OpencCV 中有基于 Haar 级联的人脸检测器。之后,您可以使用相同的界面检测面部标志点。但是你需要训练地标检测器,比如眼角、眼睛中心、嘴巴、下巴等。一旦你得到这些点,你就可以通过移动这些点来做不同类型的扭曲。
更新 iOS5:如果您的目标是 iOS5+,则不需要 openCV - 在 iOS5 中,您可以使用 Apple 提供的方法进行简单的人脸检测。