OpenCV中PCA实现人脸降维

  • e8_100202
    了解作者
  • 418.8KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-15 18:01
    上传日期
OpenCV中PCA实现人脸降维详细的介绍了怎样来降维
OpenCV中PCA实现人脸降维.rar
  • PCA_Face
  • images
  • 20.pgm
    10.1KB
  • 8.pgm
    10.1KB
  • 13.pgm
    10.1KB
  • 5.pgm
    10.1KB
  • 19.pgm
    10.1KB
  • 7.pgm
    10.1KB
  • 16.pgm
    10.1KB
  • 14.pgm
    10.1KB
  • 3.pgm
    10.1KB
  • 18.pgm
    10.1KB
  • 9.pgm
    10.1KB
  • 10.pgm
    10.1KB
  • 4.pgm
    10.1KB
  • 6.pgm
    10.1KB
  • 17.pgm
    10.1KB
  • 12.pgm
    10.1KB
  • 1.pgm
    10.1KB
  • 2.pgm
    10.1KB
  • 15.pgm
    10.1KB
  • 11.pgm
    10.1KB
  • result
  • project_face2.jpg
    4.9KB
  • pca_face2.jpg
    5KB
  • pca_face1.jpg
    4.6KB
  • pca_face3.jpg
    4.8KB
  • project_face3.jpg
    5KB
  • project_face1.jpg
    4.8KB
  • moc_pcaface.cpp
    2.8KB
  • ui_pcaface.h
    9.3KB
  • main.o
    1.6KB
  • PCA_Face.pro
    704B
  • PCA_Face.pro.user
    32.3KB
  • pcaface.cpp
    4.7KB
  • moc_pcaface.o
    7KB
  • pcaface.o
    48.3KB
  • main.cpp
    170B
  • PCA_Face
    65KB
  • Makefile
    9.3KB
  • pcaface.h
    756B
  • pcaface.ui
    6.9KB
  • PCA算法学习_1(OpenCV中PCA实现人脸降维).pdf
    211.6KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/6259b2eebe9ad24cfabb96d4/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6259b2eebe9ad24cfabb96d4/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="ff2 fs1 fc1">&#12288;<span class="fs2 fc2">&#21069;&#35328;&#65306;</span></span></div><div class="t m0 x2 h3 y2 ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;<span class="ff3">PCA<span class="_ _0"> </span></span>&#26159;&#22823;&#23478;&#32463;&#24120;&#29992;<span class="_ _1"></span>&#26469;&#20943;&#23569;&#25968;&#25454;&#38598;<span class="_ _1"></span>&#30340;&#32500;&#25968;&#65292;&#21516;&#26102;<span class="_ _1"></span>&#20445;&#30041;&#25968;&#25454;&#38598;&#20013;<span class="_ _1"></span>&#23545;&#26041;&#24046;&#36129;&#29486;&#26368;<span class="_ _1"></span>&#22823;&#30340;&#29305;&#24449;&#26469;&#36798;<span class="_ _1"></span>&#21040;&#31616;&#21270;&#25968;&#25454;&#38598;<span class="_ _1"></span>&#30340;&#30446;&#30340;&#12290;</div><div class="t m0 x2 h3 y3 ff2 fs1 fc1 sc0 ls0 ws0">&#26412;&#25991;&#36890;&#36807;&#20351;&#29992;<span class="_ _0"> </span><span class="ff3">PC<span class="_ _1"></span>A<span class="_ _0"> </span><span class="ff2">&#26469;&#25552;&#21462;&#20154;&#33080;&#20013;&#30340;&#29305;&#24449;&#33080;&#36825;<span class="_ _1"></span>&#20010;&#20363;&#23376;&#65292;&#26469;&#29087;<span class="_ _1"></span>&#24713;&#19979;&#22312;<span class="_ _0"> </span><span class="ff3">oepncv<span class="_ _0"> </span></span>&#20013;&#24590;&#26679;&#20351;&#29992;<span class="_ _0"> </span><span class="ff3">PCA<span class="_ _0"> </span></span>&#36825;&#20010;&#31867;&#12290;</span></span></div><div class="t m0 x2 h3 y4 ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;&#24320;&#21457;&#29615;&#22659;<span class="_ _1"></span>&#65306;<span class="ff3">ubunt<span class="_ _1"></span>u12.04+Qt4.8.2<span class="_ _1"></span>+QtCr<span class="_ _1"></span>eator2.5.<span class="_ _1"></span>1+opencv2.4.2</span></div><div class="t m0 x2 h4 y5 ff4 fs0 fc1 sc0 ls0 ws0"> </div><div class="t m0 x2 h2 y6 ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;<span class="ff3 fs2 fc2">PCA<span class="_ _2"> </span><span class="ff2">&#25968;&#23398;&#29702;&#35770;&#65306;</span></span></div><div class="t m0 x2 h3 y7 ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;&#20851;&#20110;<span class="_ _0"> </span><span class="ff3">PCA<span class="_ _0"> </span></span>&#30340;&#29702;&#35770;&#65292;&#36164;&#26009;&#24456;<span class="_ _1"></span>&#22810;&#65292;&#20844;&#24335;&#20063;&#19968;<span class="_ _1"></span>&#22823;&#25226;&#65292;&#26412;&#20154;&#21151;<span class="_ _1"></span>&#24213;&#26377;&#38480;&#65292;&#29702;&#35770;<span class="_ _1"></span>&#26041;&#38754;&#36825;&#37324;&#23601;&#19981;<span class="_ _1"></span>&#21015;&#20986;&#20102;&#12290;&#19979;&#38754;<span class="_ _1"></span>&#20027;&#35201;&#20174;&#24212;&#29992;&#30340;</div><div class="t m0 x2 h3 y8 ff2 fs1 fc1 sc0 ls0 ws0">&#35282;&#24230;&#22823;&#27010;&#26469;&#35762;<span class="_ _1"></span>&#35762;&#20855;&#20307;&#24590;&#20040;&#23454;<span class="_ _1"></span>&#29616;&#25968;&#25454;&#38598;&#30340;&#38477;<span class="_ _1"></span>&#32500;&#12290;</div><div class="t m0 x3 h3 y9 ff4 fs0 fc1 sc0 ls0 ws0">1.<span class="ff2 fs1">&#25226;&#21407;&#22987;&#25968;&#25454;<span class="_ _1"></span>&#20013;&#27599;&#20010;&#26679;&#26412;&#29992;<span class="_ _1"></span>&#19968;&#20010;&#21521;&#37327;&#34920;&#31034;<span class="_ _1"></span>&#65292;&#28982;&#21518;&#25226;&#25152;&#26377;<span class="_ _1"></span>&#26679;&#26412;&#32452;&#21512;&#36215;&#26469;<span class="_ _1"></span>&#26500;&#25104;&#19968;&#20010;&#30697;&#38453;<span class="_ _1"></span>&#12290;&#24403;&#28982;&#20102;&#65292;&#20026;<span class="_ _1"></span>&#20102;&#36991;&#20813;&#26679;</span></div><div class="t m0 x3 h3 ya ff2 fs1 fc1 sc0 ls0 ws0">&#26412;&#30340;&#21333;&#20301;&#30340;<span class="_ _1"></span>&#24433;&#21709;&#65292;&#26679;&#26412;&#38598;<span class="_ _1"></span>&#38656;&#35201;&#26631;&#20934;&#21270;&#12290;</div><div class="t m0 x3 h3 yb ff4 fs0 fc3 sc0 ls0 ws0">2.<span class="ff2 fs1 fc1">&#27714;&#35813;&#30697;&#38453;&#30340;<span class="_ _1"></span>&#21327;&#38450;&#24046;&#30697;&#38453;&#65288;<span class="_ _1"></span>&#20851;&#20110;&#21327;&#26041;&#24046;&#30340;<span class="_ _1"></span>&#20171;&#32461;&#21487;&#20197;&#21442;&#32771;<span class="_ _1"></span>&#25105;&#30340;&#21338;&#25991;&#65306;<span class="fc4">&#19968;<span class="_ _1"></span>&#20123;&#30693;&#35782;&#28857;&#30340;&#21021;<span class="_ _1"></span>&#27493;&#29702;&#35299;<span class="ff3">_<span class="_ _3"></span>4<span class="_ _3"></span>(<span class="_ _4"></span><span class="ff2">&#21327;&#26041;&#24046;&#30697;</span></span></span></span></div><div class="t m0 x3 h3 yc ff2 fs1 fc4 sc0 ls0 ws0">&#38453;<span class="ff3">,<span class="_ _1"></span>i<span class="_ _4"></span>n<span class="_ _4"></span>g<span class="_ _4"></span>.<span class="_ _1"></span>.<span class="_ _4"></span>.<span class="_ _4"></span>)<span class="_ _4"></span><span class="ff2 fc1">&#65289;&#12290;</span></span></div><div class="t m0 x3 h3 yd ff4 fs0 fc1 sc0 ls0 ws0">3.<span class="ff2 fs1">&#27714;&#27493;&#39588;<span class="_ _0"> </span><span class="ff3">2<span class="_ _5"> </span></span>&#20013;&#24471;&#21040;&#30340;&#21327;&#26041;<span class="_ _1"></span>&#24046;&#30697;&#38453;&#30340;&#29305;&#24449;<span class="_ _1"></span>&#20540;&#21644;&#29305;&#24449;&#21521;&#37327;<span class="_ _1"></span>&#12290;</span></div><div class="t m0 x3 h3 ye ff4 fs0 fc1 sc0 ls0 ws0">4.<span class="ff2 fs1">&#23558;&#27714;&#20986;&#30340;&#29305;<span class="_ _1"></span>&#24449;&#21521;&#37327;&#25353;&#29031;&#29305;<span class="_ _1"></span>&#24449;&#20540;&#30340;&#22823;&#23567;&#36827;<span class="_ _1"></span>&#34892;&#32452;&#21512;&#24418;&#25104;&#19968;<span class="_ _1"></span>&#20010;&#26144;&#23556;&#30697;&#38453;&#65292;<span class="_ _1"></span>&#24182;&#26681;&#25454;&#25351;&#23450;&#30340;<span class="_ _0"> </span><span class="ff3">PCA<span class="_ _0"> </span></span>&#20445;&#30041;&#30340;&#29305;&#24449;<span class="_ _1"></span>&#20010;&#25968;&#21462;</span></div><div class="t m0 x3 h3 yf ff2 fs1 fc1 sc0 ls0 ws0">&#20986;&#26144;&#23556;&#30697;&#38453;<span class="_ _1"></span>&#30340;&#21069;<span class="_ _0"> </span><span class="ff3">n<span class="_ _5"> </span></span>&#34892;&#25110;&#32773;&#21069;<span class="_ _0"> </span><span class="ff3">n<span class="_ _5"> </span></span>&#21015;&#20316;&#20026;&#26368;&#32456;&#30340;&#26144;&#23556;<span class="_ _1"></span>&#30697;&#38453;&#12290;</div><div class="t m0 x3 h3 y10 ff4 fs0 fc1 sc0 ls0 ws0">5.<span class="ff2 fs1">&#29992;&#27493;&#39588;<span class="_ _0"> </span><span class="ff3">4<span class="_ _5"> </span></span>&#30340;&#26144;&#23556;&#30697;&#38453;&#23545;<span class="_ _1"></span>&#21407;&#22987;&#25968;&#25454;&#36827;&#34892;<span class="_ _1"></span>&#26144;&#23556;&#65292;&#36798;&#21040;&#25968;<span class="_ _1"></span>&#25454;&#38477;&#32500;&#30340;&#30446;&#30340;<span class="_ _1"></span>&#12290;</span></div><div class="t m0 x2 h4 y11 ff4 fs0 fc1 sc0 ls0 ws0"> </div><div class="t m0 x2 h2 y12 ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;<span class="fs2 fc2">&#23454;&#39564;&#35828;&#26126;&#65306;</span></div><div class="t m0 x2 h3 y13 ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;&#22312;&#26412;&#27425;&#23454;<span class="_ _1"></span>&#39564;&#23454;&#29616;&#30340;&#36807;&#31243;<span class="_ _1"></span>&#20013;&#65292;&#38656;&#35201;&#29992;&#21040;<span class="_ _0"> </span><span class="ff3">op<span class="_ _1"></span>encv<span class="_ _0"> </span><span class="ff2">&#30340;&#36825;&#20123;&#20989;&#25968;&#65292;&#19979;&#38754;&#31616;<span class="_ _1"></span>&#21333;&#20171;&#32461;&#19979;&#36825;&#20123;<span class="_ _1"></span>&#20989;&#25968;&#12290;</span></span></div><div class="t m0 x2 h3 y14 ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;<span class="ff3 fc5">Mat Ma<span class="_ _1"></span>t::re<span class="_ _1"></span>shape(int cn, int<span class="_ _1"></span> r<span class="_ _1"></span>ows=0) const</span></div><div class="t m0 x2 h3 y15 ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;&#35813;&#20989;&#25968;&#26159;<span class="_ _1"></span>&#25913;&#21464;<span class="_ _0"> </span><span class="ff3">Mat<span class="_ _0"> </span></span>&#30340;&#23610;&#23544;&#65292;&#21363;&#20445;&#25345;&#23610;&#23544;&#22823;<span class="_ _1"></span>&#23567;<span class="ff3">=</span>&#34892;&#25968;<span class="ff3">*</span>&#21015;&#25968;<span class="_ _1"></span><span class="ff3">*<span class="ff2">&#36890;&#36947;&#25968; &#19981;&#21464;&#12290;&#20854;<span class="_ _1"></span>&#20013;&#31532;&#19968;&#20010;&#21442;&#25968;<span class="_ _1"></span>&#20026;&#21464;&#25442;&#21518;<span class="_ _0"> </span><span class="ff3">Mat<span class="_ _0"> </span></span>&#30340;&#36890;&#36947;</span></span></div><div class="t m0 x2 h3 y16 ff2 fs1 fc1 sc0 ls0 ws0">&#25968;&#65292;&#22914;&#26524;&#20026;<span class="_ _0"> </span><span class="ff3">0</span>&#65292;&#20195;&#34920;&#21464;<span class="_ _1"></span>&#25442;&#21069;&#21518;&#36890;&#36947;&#25968;<span class="_ _1"></span>&#19981;&#21464;&#12290;&#31532;&#20108;&#20010;<span class="_ _1"></span>&#21442;&#25968;&#20026;&#21464;&#25442;&#21518;<span class="_ _0"> </span><span class="ff3">Mat<span class="_ _0"> </span></span>&#30340;&#34892;&#25968;&#65292;&#22914;&#26524;<span class="_ _1"></span>&#20026;<span class="_ _0"> </span><span class="ff3">0<span class="_ _5"> </span></span>&#20063;&#26159;&#20195;&#34920;&#21464;<span class="_ _1"></span>&#25442;&#21069;&#21518;&#36890;&#36947;&#25968;<span class="_ _1"></span>&#19981;</div><div class="t m0 x2 h3 y17 ff2 fs1 fc1 sc0 ls0 ws0">&#21464;&#12290;&#20294;&#26159;&#35813;&#20989;<span class="_ _1"></span>&#25968;&#26412;&#36523;&#19981;&#22797;&#21046;<span class="_ _1"></span>&#25968;&#25454;&#65288;&#36825;&#28857;&#19981;<span class="_ _1"></span>&#26159;&#24456;&#29702;&#35299;&#65292;&#35843;<span class="_ _1"></span>&#29992;&#19968;&#20010;<span class="_ _0"> </span><span class="ff3">Mat<span class="_ _0"> </span></span>&#30340;<span class="_ _0"> </span><span class="ff3">reshape</span>&#65292;&#22914;&#26524;&#25105;&#20204;&#19981;<span class="_ _1"></span>&#25226;&#35843;&#29992;&#21518;&#30340;<span class="_ _0"> </span><span class="ff3">Mat<span class="_ _0"> </span></span>&#20570;&#20026;</div><div class="t m0 x2 h3 y18 ff2 fs1 fc1 sc0 ls0 ws0">&#36820;&#22238;&#20540;&#21435;&#29992;&#65292;<span class="_ _1"></span>&#38590;&#36947;&#27492;&#26102;&#35843;&#29992;<span class="_ _1"></span>&#21069;&#30340;<span class="_ _0"> </span><span class="ff3">Mat<span class="_ _0"> </span></span>&#19968;&#28857;&#21464;&#21270;&#37117;&#27809;&#26377;&#65311;&#65289;&#12290;</div><div class="t m0 x2 h4 y19 ff4 fs0 fc1 sc0 ls0 ws0"> </div><div class="t m0 x2 h3 y1a ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;<span class="ff3 fc5">void M<span class="_ _1"></span>at::conver<span class="_ _1"></span>tT<span class="_ _6"></span>o(OutputAr<span class="_ _1"></span>ray m, int rtyp<span class="_ _1"></span>e, double alpha=<span class="_ _1"></span>1, double beta=<span class="_ _1"></span>0 ) const</span></div><div class="t m0 x2 h3 y1b ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;&#35813;&#20989;&#25968;&#20854;<span class="_ _1"></span>&#23454;&#26159;&#23545;&#21407;<span class="_ _0"> </span><span class="ff3">Mat<span class="_ _0"> </span></span>&#30340;&#27599;&#19968;&#20010;&#20540;&#20570;&#19968;&#20010;<span class="_ _1"></span>&#32447;&#24615;&#21464;&#25442;&#12290;&#21442;<span class="_ _1"></span>&#25968;<span class="_ _0"> </span><span class="ff3">1<span class="_ _5"> </span></span>&#20026;&#30446;&#30340;&#30697;&#38453;<span class="_ _1"></span>&#65292;&#21442;&#25968;<span class="_ _0"> </span><span class="ff3">2<span class="_ _5"> </span></span>&#20026;&#30446;<span class="_ _0"> </span><span class="ff3">d<span class="_ _5"> </span></span>&#30697;&#38453;&#30340;&#31867;&#22411;<span class="_ _1"></span>&#65292;&#21442;&#25968;<span class="_ _0"> </span><span class="ff3">3</span></div><div class="t m0 x2 h3 y1c ff2 fs1 fc1 sc0 ls0 ws0">&#21644;<span class="_ _0"> </span><span class="ff3">4<span class="_ _5"> </span></span>&#21464;&#25442;&#30340;&#31995;&#25968;<span class="_ _1"></span>&#65292;&#30475;&#23436;&#19979;&#38754;&#30340;<span class="_ _1"></span>&#20844;&#24335;&#23601;&#26126;&#30333;&#20102;<span class="_ _1"></span>&#65306;</div><div class="t m0 x2 h3 y1d ff2 fs1 fc1 sc0 ls0 ws0">&#12288;&#12288;</div><div class="t m0 x2 h4 y1e ff4 fs0 fc1 sc0 ls0 ws0"> </div><div class="t m0 x2 h3 y1f ff2 fs1 fc1 sc0 ls0 ws0">&#12288;<span class="fc5">&#12288;<span class="ff3">PCA<span class="_ _1"></span>::PCA(Input<span class="_ _1"></span>Arra<span class="_ _1"></span>y data, I<span class="_ _1"></span>nputAr<span class="_ _1"></span>ray mean, int flags, i<span class="_ _1"></span>nt maxComp<span class="_ _1"></span>onents=0)</span></span></div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • OpenCV
      OpenCV
    • Unbuntu Opencv
      在Linuix下配置Opencv要先对Opencv进行编译,这是用Cmaker已经编译好的文件,可以直接sudo命令用。
    • opencv
      opencv
    • OpenCV
      使用opencv和dlib构建基本的Compyter视觉应用程序
    • opencv程序
      OpenCV程序包含双目摄像机标定,棋盘图像矫正,立体像对校正,立体匹配,三维重建模块。然后用OpenGL显示重建效果,并可以通过键盘方向键旋转
    • opencv
      这是一个opencv库。可以让我们方便的使用,拿走不谢。
    • OpenCV
      无人机面部追踪
    • OpenCV
      OpenCV
    • opencv
      OpenCV
    • OpenCV
      OpenCV 特征检测,分类器图像