Plz tell me how to detect the face of a person in an image.I want matlab code for this.

1 view (last 30 days)
I want matlab code for detecting the face of a person in an image. can anybody help me,it is urgent.

Answers (3)

Mischa Kim
Mischa Kim on 13 Jan 2014
Hello Tawheed, have you checked File Exchange?

Image Analyst
Image Analyst on 13 Jan 2014
Edited: Image Analyst on 13 Jan 2014
Depends on what you mean by "a" person. There is no face recognition (where your image matches a specific person in your database) built into MATLAB or any of the toolboxes, only face detection ( any human face, not caring who) in the Computer Vision System Toolbox. See this page: Face Detection by Computer Vision System Toolbox for face detection (all faces, we don't care who).
If you can't find code, you'll have to write your own. You can use papers that have been published here: VisionBib

Anand
Anand on 13 Jan 2014
If you have the Computer Vision System Toolbox, you can use the vision.CascadeObjectDetector to detect faces. The linked page contains code examples.
Additionally, you can look into this example as well:
Hope this helps.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!