資源簡介
專業綜合實踐代碼,內附人臉庫,代碼可運行,識別正確率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個文件信息
評論
共有 條評論