开发者

iPhone: Face recognition feature

开发者 https://www.devze.com 2023-03-22 13:53 出处:网络
I have a requirement where I need to recognize the face and should be able to apply some kind of filters(or templates) so that eyes becom开发者_开发问答e big/small, able to add moustache, change hair

I have a requirement where I need to recognize the face and should be able to apply some kind of filters(or templates) so that eyes becom开发者_开发问答e big/small, able to add moustache, change hair etc. I will have all related graphics ready. I just need to recognize the area of eyes, hair etc and apply those graphic to change the face!

Please let me know if anyone could help to get me into right direction.

Thanks.


In iOS5 SDK you can detect faces in a CIImage by creating a CIDetector of type CIDetectorTypeFace. And then get the list of CIFaceFeature objects with the method:

- (NSArray *)featuresInImage:(CIImage *)image

You can even get the position of the eyes and the mouth.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号