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

回答(3 个)

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
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.

2 个评论

can u tell the alternate for vision.cascadeobjectdetector... because it is not working on my matlab
vision.CascadeObjectDetector not vision.cascadeobjectdetector
You need at least R2012a for it.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by