hog+svm性别识别源码


基于opencv 的hog+svm性别识别源码 ,其中文件夹中生成xml,可以直接使用。可以作为参考代码
资源截图
代码片段和文件信息
#include 
#include 

using namespace cv;

int main(int argc char** argv){

    Mat image;
    image = imread(“test.bmp“ 1);   // Read the file

    if(! image.data )                              // Check for invalid input
    {
        cout <<  “Could not open or find the image“ << std::endl ;
        return -1;
    }

    namedWindow( “Display window“ WINDOW_AUTOSIZE );// Create a window for display.
    imshow( “Display window“ image );                   // Show our image inside it.

    waitKey(0);   

      return 0;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-08-10 08:35  gender-classification-master
     文件         387  2016-08-10 08:35  gender-classification-master.gitignore
     文件        2283  2016-08-10 08:35  gender-classification-masterREADME.md
     文件       15743  2016-08-10 08:35  gender-classification-masterSVM_PCA.xml
     文件      919871  2016-08-10 08:35  gender-classification-masterhaarcascade_frontalface_alt.xml
     目录           0  2016-08-10 08:35  gender-classification-masterignore
     文件         562  2016-08-10 08:35  gender-classification-masterignoreDisplayImage.cpp
     文件       11001  2016-08-10 08:35  gender-classification-masterignoreSVM_PCA_old_400_p81.xml
     文件         167  2016-08-10 08:35  gender-classification-masterignoregenList.sh
     文件         157  2016-08-10 08:35  gender-classification-masterignore
ename.sh
     目录           0  2016-08-10 08:35  gender-classification-mastersrc
     文件         848  2016-08-10 08:35  gender-classification-mastersrcCMakeLists.txt
     文件        2951  2016-08-10 08:35  gender-classification-mastersrcCameraGenderRecognition.cpp
     文件        3076  2016-08-10 08:35  gender-classification-mastersrcmyGabor.cpp
     文件         811  2016-08-10 08:35  gender-classification-mastersrcmyGabor.h
     文件        4594  2016-08-10 08:35  gender-classification-mastersrcpcaImpl.cpp
     文件         575  2016-08-10 08:35  gender-classification-mastersrcpcaImpl.h
     文件        5420  2016-08-10 08:35  gender-classification-mastersrc estMain.cpp
     文件        7174  2016-08-10 08:35  gender-classification-mastersrc rMain.cpp
     文件        2657  2016-08-10 08:35  gender-classification-mastersrcutils.cpp
     文件        1794  2016-08-10 08:35  gender-classification-mastersrcutils.h
     文件      227692  2016-08-10 08:35  gender-classification-master est
     目录           0  2016-08-10 08:35  gender-classification-master estPic
     文件       10514  2016-08-10 08:35  gender-classification-master estPic est_01.jpg
     文件        8407  2016-08-10 08:35  gender-classification-master estPic est_02.jpg
     文件      116205  2016-08-10 08:35  gender-classification-master estPic est_03.jpg
     文件      321591  2016-08-10 08:35  gender-classification-master estPic est_04.jpg
     文件       11382  2016-08-10 08:35  gender-classification-master estPic est_05.bmp
     文件       11382  2016-08-10 08:35  gender-classification-master estPic est_06.bmp
     文件       11382  2016-08-10 08:35  gender-classification-master estPic est_07.bmp
     文件       11382  2016-08-10 08:35  gender-classification-master estPic est_08.bmp
............此处省略1044个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)