xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡(jiǎn)介

對(duì)ORL人臉庫(kù)的PCA人臉識(shí)別,內(nèi)涵11個(gè)m文件以及一個(gè)結(jié)果演示的Word。運(yùn)行facegui.m可以直接運(yùn)行,無(wú)需任何修改。這里使用了GUI界面,功能是查看識(shí)別成功率以及圖片的識(shí)別。

資源截圖

代碼片段和文件信息

clcclear
npersons=40;%選取40個(gè)人的臉
global?imgrow;
global?imgcol;
global?edit2
imgrow=112;
imgcol=92;

set(edit2‘string‘‘讀取訓(xùn)練數(shù)據(jù)......‘)%顯示在句柄為edit2的文本框里
drawnow?????%更新窗口的內(nèi)容,不然程序結(jié)束時(shí)才會(huì)顯示,這樣只能看到最后一句
f_matrix=ReadFace(npersons0);%讀取訓(xùn)練數(shù)據(jù)
nfaces=size(f_matrix1);%樣本人臉的數(shù)量

set(edit2‘string‘‘訓(xùn)練數(shù)據(jù)PCA特征提取......‘)
drawnow
mA=mean(f_matrix);
k=20;%降維至20維
[pcafaceV]=fastPCA(f_matrixkmA);%主成分分析法特征提取

set(edit2‘string‘‘訓(xùn)練數(shù)據(jù)規(guī)范化......‘)
drawnow
lowvec=min(pcaface);
upvec=max(pcaface);
scaledface?=?scaling(?pcafacelowvecupvec);

set(edit2‘string‘‘SVM樣本訓(xùn)練......‘)
drawnow
gamma=0.0078;
c=128;
multiSVMstruct=multiSVMtrain(?scaledfacenpersonsgammac);
save(‘recognize.mat‘‘multiSVMstruct‘‘npersons‘‘k‘‘mA‘‘V‘‘lowvec‘‘upvec‘);

set(edit2‘string‘‘讀取測(cè)試數(shù)據(jù)......‘)
drawnow
[testfacerealclass]=ReadFace(npersons1);

set(edit2‘string‘‘測(cè)試數(shù)據(jù)特征降維......‘)
drawnow
m=size(testface1);
for?i=1:m
????testface(i:)=testface(i:)-mA;
end
pcatestface=testface*V;

set(edit2‘string‘‘測(cè)試數(shù)據(jù)規(guī)范化......‘)
drawnow
scaledtestface?=?scaling(?pcatestfacelowvecupvec);

set(edit2‘string‘‘SVM樣本分類......‘)
drawnow
class=?multiSVM(scaledtestfacemultiSVMstructnpersons);
set(edit2‘string‘‘測(cè)試完成!‘)
accuracy=sum(class==realclass)/length(class);
msgbox([‘識(shí)別準(zhǔn)確率:‘num2str(accuracy*100)‘%。‘])

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????1467??2018-05-28?15:28??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\face.m

?????文件????????908??2018-05-28?15:21??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\facegui.m

?????文件????????496??2018-05-28?15:07??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\fastPCA.m

?????文件????????271??2018-05-28?15:30??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\GUIopen.m

?????文件???????1368??2018-05-28?15:37??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\GUIrecg.m

?????文件????????264??2018-05-28?15:08??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\kfun_rbf.m

?????文件????????390??2018-05-28?15:08??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\multiSVM.m

?????文件????????417??2018-05-28?15:08??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\multiSVMtrain.m

?????文件???????1089??2018-05-28?15:07??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\ReadFace.m

?????文件????????369??2018-05-28?15:07??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\scaling.m

?????文件????????315??2018-05-28?15:12??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\visualize.m

?????文件?????139264??2018-05-28?15:48??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別\新建?Microsoft?Word?97?-?2003?文檔.doc

?????目錄??????????0??2018-05-28?15:48??視覺物聯(lián)網(wǎng)實(shí)驗(yàn)四人臉識(shí)別

-----------?---------??----------?-----??----

???????????????146618????????????????????13


評(píng)論

共有 條評(píng)論