How to get a single entity from an image?

孤者浪人 提交于 2019-11-27 08:12:08

问题


I am using this image. I would like to have only the human part from this image. I don't want the background of this image.

How to do this? Any logic, links or the best and simple way?

here is the thing i want Link but i want this in objective c


回答1:


There is no easy and fast way to satisfy your requirements. For the beginning you can learn how to detect objects in OpenCV.

After this you can check haarcascade_fullbody.xml from OpenCV sources. This cascade is for detecting bodies, open it in text editor, there is additional information in header. Anyway, I'm not sure that existing cascade is too accurate for your needs.




回答2:


From iOS5 and above you can user face detection API. By using FaceDetection APi you can easily find the face of the person. For reference and sample code here is the link.

All the best !!!




回答3:


For ios5.1+, using a CIDetector and CIFaceFeature class can be easily face recognition.

Body recognition, is you will need to use opencv library. Not yet supported by apple.

Have a look at this: http://niw.at/articles/2009/03/14/using-opencv-on-iphone/en

Cropping an image in iOS using OpenCV face detection



来源:https://stackoverflow.com/questions/15131768/how-to-get-a-single-entity-from-an-image

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