資源簡介
基于PCA+SVM算法的完整人臉識別系統(tǒng),測試通過可用,Matlab語言有詳細解釋,附帶人臉庫,有GUI用戶界面,可供學(xué)習(xí)研究

代碼片段和文件信息
load?fisheriris?%?載入fisheriris數(shù)據(jù)集?
data?=?[meas(:1)?meas(:2)];?%?取出所有樣本的前2維作為特征
%?轉(zhuǎn)化為“是不是setosa類”的2類問題
groups?=?ismember(species‘setosa‘);
%?利用交叉驗證隨機分割數(shù)據(jù)集
[train?test]?=?crossvalind(‘holdOut‘groups);
%?訓(xùn)練一個線性的支持向量機,訓(xùn)練好的分類器保存在svmStruct
svmStruct?=?svmtrain(data(train:)groups(train)‘showplot‘true);
%?利用包含訓(xùn)練所得分類器信息的svmStruct對測試樣本進行分類,分類結(jié)果保存到classes
classes?=?svmclassify(svmStructdata(test:)‘showplot‘true);
%?計算測試樣本的識別率
nCorrect?=?sum(?classes?==?groups(test:)?);?%?正確分類的樣本數(shù)目
accuracy?=?nCorrect?/?length(classes)?%?計算正確率
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????686??2011-10-07?09:33??chapter15\code\ex15_2.m
?????文件????????636??2011-10-07?09:29??chapter15\code\FaceRec\classify.asv
?????文件????????678??2011-10-07?09:29??chapter15\code\FaceRec\classify.m
?????文件?????207976??2011-10-07?09:29??chapter15\code\FaceRec\composite.tiff
?????文件???????1579??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\README
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\1.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\10.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\2.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\3.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\4.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\5.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\6.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\7.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\8.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s1\9.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\1.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\10.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\2.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\3.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\4.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\5.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\6.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\7.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\8.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s10\9.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s11\1.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s11\10.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s11\2.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s11\3.pgm
?????文件??????10318??2011-10-07?09:29??chapter15\code\FaceRec\Data\ORL\s11\4.pgm
............此處省略465個文件信息
評論
共有 條評論