Forpersonaluseonlyinstudyandresearch;mercialuse螄薀衿本文基于PCA算法,实现人脸识别。肀薇蚄首先,我们来看一下测试结果:蒃蚀节芇羅羁由于本文只是简单地对训练人脸进行降维处理,并没有考虑其他影响因素,所以识别率相对来说比较低。节蚀羆下面给出具体代码:蚈螇莅functionvarargout=FaceRec(varargin>莅螀肁%FACERECM-%FACEREC,byitself,createsanewFACERECorraisestheexistingb5E2RGbCAP肄袀莆%singleton*.蒀袆袃%袂羀肃%H=FACERECreturnsthehandletoanewFACERECorthehandletop1EanqFDPw袀莄膁%theexistingsingleton*.袅肀螇%羇肆薅%FACEREC('CALLBACK',hObject,eventData,handles,...>callsthelocalDXDiTa9E3d蚄膀袂%%蒃艿膈%FACEREC('Property','Value',...>createsanewFACERECorraisesthe5PCzVD7HxA蝿芆肃%existingsingleton*.Startingfromtheleft,propertyvaluepairsarejLBHrnAILg膂艿蚁%%unrecognizedpropertynameorinvalidvaluemakespropertyapplicationLDAYtRyKfE芅荿蕿%%羄葿蚄%*SeeGUIOptionsonGUIDE'"GUIallowsonlyonedvzfvkwMI1螈膈蒀%instancetorun(singleton>".螃袃螆%腿薅蒇%Seealso:GUIDE,GUIDATA,GUIHANDLES螆袃蒃%EdittheabovetexttomodifytheresponsetohelpFaceRecrqyn14ZNXI蕿芇薀%-Nov-201819:23:02薄羃膇%Begininitializationcode-DONOTEDIT羀螅袅gui_Singleton=1。莃肃膂gui_State=struct('gui_Name',mfilename,...EmxvxOtOco肇蒇薀'gui_Singleton',gui_Singleton,...肂膂薈'',@,...蒈羅蚇'',@,...膅节羁'',[],...衿蚇蚀'gui_Callback',[]>。袄莂罿ifnargin&&ischar(varargin{1}>=str2func(varargin{1}>。蚃蒂羄end莇螇螀ifnargout蒂蒂肅[varargout{1:nargout}]=(gui_State,varargin{:}>。(gui_State,varargin{:}>。膈羆袀end芃蚂蒆%Endinitializationcode-DONOTEDIT虿蒄芄%---ExecutesjustbeforeFaceRecismadevisible.(hObject,eventdata,handles,varargin>kavU42VRUs肀膆羀%Thisfunctionhasnooutputargs,.肅袁袇%hObjecthandletofigure膇袈羆%eventdatareserved-tobedefinedinafutureversionofMATLABy6v3ALoS89袄羁薄%handlesstructurewithhandlesanduserdata(seeGUIDATA>M2ub6vSTnP薈莆肀%mandlineargumentstoFaceRec(seeVARARGIN>0YujCfmUCw薃肁芈set(,'xtick',[],'ytick',[]>罿肈蒄set(,'xtick',[],'ytick',[]>莂肁莃%=hObject。莅膁虿%Updatehandlesstructur
基于PCA的人脸识别 来自淘豆网m.daumloan.com转载请标明出处.