资源简介
程序实现人脸特征的检测和定位,可以识别并标注眉毛,眼睛,鼻子,嘴巴以及耳朵。能用于单人和多人脸图的检测识别,效果不错。
代码片段和文件信息
%% Program Instruction
%%%%%% This program is performed to implement the human facial feature
%%%%%% detection based on computer Vision System Toolbox in Matlab.
%%%%%% Author:
%%%%%% Youyi Feng
%%%%%% Constrution Information Technology of Civil Engineering
%%%%%% West Virginia University
%%%%%% Morgantown 26506
%%%%%% Email: yofeng@mix.wvu.edu
%% Program start
clear all
clc
%% To detect Face
Face_Detect = vision.CascadeobjectDetector;
%Read the input image
Img = imread(‘2.jpg‘);
%Returns Bounding Box values based on number of objects
Face = step(Face_DetectImg);
figure
imshow(Img); hold on
for i = 1:size(Face1)
rectangle(‘Position‘Face(i:)‘LineWidth‘5‘Linestyle‘‘-‘‘EdgeColor‘‘r‘);
end
title(‘Face Detection‘);
hold off;
%% To detect
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2826134 2014-04-21 10:57 2.jpg
文件 376758 2014-04-21 10:58 3.jpg
文件 1746 2014-04-24 10:54 main.m
评论
共有 条评论