资源简介
专业综合实践代码,内附人脸库,代码可运行,识别正确率80%以上。测试时使用为本人图片,所以未上传,需要更改一下图像路径

代码片段和文件信息
% buildDetector: build face parts detector object
%
% detector = buildDetector( thresholdFace thresholdParts stdsize )
%
%Output parameter:
% detector: built detector object
%
%
%Input parameters:
% thresholdFace (optional): MergeThreshold for face detector (Default: 1)
% thresholdParts (optional): MergeThreshold for face parts detector (Default: 1)
% stdsize (optional): size of normalized face (Default: 176)
%
%
%Example:
% detector = buildDetector();
% img = imread(‘img.jpg‘);
% [bbbox bbimg] = detectFaceParts(detectorimg);
%
%
%Version: 20120529
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Face Parts Detection: %
% %
% Copyright (C) 2012 Masayuki Tanaka. All rights reserved. %
% mtanaka@ctrl.titech.ac.jp %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function detector = buildDetector( thresholdFace thresholdParts stdsize )
if( nargin < 1 )
thresholdFace = 1;
end
if( nargin < 2 )
thresholdParts = 1;
end
if( nargin < 3 )
stdsize = 176;
end
nameDetector = {‘LeftEye‘; ‘RightEye‘; ‘Mouth‘; ‘Nose‘; };
mins = [[12 18]; [12 18]; [15 25]; [15 18]; ];
detector.stdsize = stdsize;
detector.detector = cell(51);
for k=1:4
minSize = int32([stdsize/5 stdsize/5]);
minSize = [max(minSize(1)mins(k1)) max(minSize(2)mins(k2))];
detector.detector{k} = vision.CascadeobjectDetector(char(nameDetector(k)) ‘MergeThreshold‘ thresholdParts ‘MinSize‘ minSize);
end
detector.detector{5} = vision.CascadeobjectDetector(‘FrontalFaceCART‘ ‘MergeThreshold‘ thresholdFace);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3466 2017-12-29 18:28 PCA_TRY1.m
文件 3438 2017-12-25 21:32 PCA_try.m
文件 2718 2017-12-07 17:48 PCA_yale.m
文件 1767 2016-06-08 20:27 buildDetector.m
文件 357 2016-06-08 20:27 checkToolboxes.m
文件 1233 2017-12-10 17:20 cut_face.m
文件 748 2016-06-08 20:27 demo.m
文件 4281 2016-06-08 20:27 detectFaceParts.m
文件 4282 2016-06-08 20:27 detectRotFaceParts.m
文件 1861 2016-06-08 20:27 drawFourPoints.m
文件 2613 2017-12-16 20:57 face_cut.m
文件 1067 2017-12-19 23:13 face_read.m
文件 476215 2016-06-08 20:27 lena.png
文件 1315 2016-06-08 20:27 license.txt
文件 472 2017-12-20 13:10 main.m
文件 1622 2016-06-08 20:27 mergeFourPoints.m
目录 0 2018-01-23 14:34 orl_faces\
文件 1579 1995-02-24 02:13 orl_faces\README
目录 0 2018-01-23 14:33 orl_faces\s1\
文件 10318 1994-04-18 21:17 orl_faces\s1\1.pgm
文件 10318 1994-04-18 21:07 orl_faces\s1\10.pgm
文件 10318 1994-04-18 21:17 orl_faces\s1\2.pgm
文件 10318 1994-04-18 21:17 orl_faces\s1\3.pgm
文件 10318 1994-04-18 21:17 orl_faces\s1\4.pgm
文件 10318 1994-04-18 21:17 orl_faces\s1\5.pgm
文件 10318 1994-04-18 21:07 orl_faces\s1\6.pgm
文件 10318 1994-04-18 21:07 orl_faces\s1\7.pgm
文件 10318 1994-04-18 21:07 orl_faces\s1\8.pgm
文件 10318 1994-04-18 21:07 orl_faces\s1\9.pgm
目录 0 2018-01-23 14:33 orl_faces\s10\
文件 10318 1994-04-18 21:18 orl_faces\s10\1.pgm
............此处省略428个文件信息
相关资源
- 编程实现二维DCT变换
- 图像二值化
- 用FFT对信号进行频谱分析
- Tone-Reservation
- QGA 量子遗传算法
- 将yuv各种格式的图片转换为jpg格式的
- 差分形式的阻滞增长模型
- 遗传算法的M文件
- 超强JPG图片压缩工具,减小图片文件
- 简单二阶互联系统的非线性动力学分
- 手写数字识别-模板匹配法
- Stock_Watson_动态因子分析模型
- 果蝇优化算法优化支持向量回归程序
- 自己做的一个简单GUI扑克纸牌识别-
- multi output SVR
- AR过程的线性建模过程与各种功率谱估
- PCNN TOOLBOX
- plstoolbox.zip
- 单反相机的JPG和RAW文件同步删除
- 中国国家基础地理信息系统GIS数据
- 粒子群微电网优化调度
- 矩阵分析-经典教材-中文版-Roger.A.Ho
- 压缩感知TwIST
- 基于最小错误率的贝叶斯手写数字分
- 最全系统辨识源代码,包括多种最小
- 导弹制导实验
- ffmpeg转换MP4为JPG帧图片
- 操作系统_思维导图_xmind+jpg格式
- ffmpeg提取mp4关键帧保存为jpg.zip
- ffmpeg h264 转换jpg
评论
共有 条评论