身体和面部检测问题

身体和面部检测问题

本文介绍了身体和面部检测问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在图像中,我想要检测身体和脸部,无论背景如何,因为我需要模糊图片中的人而不是剩余的图像。

In an image I want to detect only the body and face regardless of the background because I need to blur the person who is in the picture and not the remaining image.

(如果有可能,任何人都可以告诉使用核心图像过滤器)

(If possible can anyone tell using core image filters)

请指导我

在此先感谢。

推荐答案

在ios5.1之后,使用和类可以轻松识别面部。
参考本教程:

After ios5.1, using a CIDetector and CIFaceFeature class can be easily face recognition.refer a this tutorial: tutorial-easy-face-detection

如果你想要ios5.1之前检查这个苹果示例代码:

if you want ios5.1 before check the this apple sample code: Square CAM

身体识别,是否需要使用opencv库。尚未得到苹果的支持。
查看此pdf。这个pdf还有一个内容,如何为iphone opencv构建。它会对你有所帮助:

Body recognition, is you will need to use opencv library. Does not yet support by apple.check out this pdf. this pdf also have a contents that how to opencv build for iphone. It will help you a lot.: face detection with openCV

如果您通过图像成功进行面部识别。得到一个面部和身体的界限。
面部和身体图像裁剪和复制之后模糊整个图像然后将其粘贴回边界,你似乎是。

If you are successful in face, body recognition by image. get a face and body bounds.face and body image cropping and copy after Blur the entire image then paste it back into bounds, you seem to be.

这篇关于身体和面部检测问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 13:22