资源简介

基于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-master\README.md
     文件       15743  2016-08-10 08:35  gender-classification-master\SVM_PCA.xml
     文件      919871  2016-08-10 08:35  gender-classification-master\haarcascade_frontalface_alt.xml
     目录           0  2016-08-10 08:35  gender-classification-master\ignore\
     文件         562  2016-08-10 08:35  gender-classification-master\ignore\DisplayImage.cpp
     文件       11001  2016-08-10 08:35  gender-classification-master\ignore\SVM_PCA_old_400_p81.xml
     文件         167  2016-08-10 08:35  gender-classification-master\ignore\genList.sh
     文件         157  2016-08-10 08:35  gender-classification-master\ignore\rename.sh
     目录           0  2016-08-10 08:35  gender-classification-master\src\
     文件         848  2016-08-10 08:35  gender-classification-master\src\CMakeLists.txt
     文件        2951  2016-08-10 08:35  gender-classification-master\src\CameraGenderRecognition.cpp
     文件        3076  2016-08-10 08:35  gender-classification-master\src\myGabor.cpp
     文件         811  2016-08-10 08:35  gender-classification-master\src\myGabor.h
     文件        4594  2016-08-10 08:35  gender-classification-master\src\pcaImpl.cpp
     文件         575  2016-08-10 08:35  gender-classification-master\src\pcaImpl.h
     文件        5420  2016-08-10 08:35  gender-classification-master\src\testMain.cpp
     文件        7174  2016-08-10 08:35  gender-classification-master\src\trMain.cpp
     文件        2657  2016-08-10 08:35  gender-classification-master\src\utils.cpp
     文件        1794  2016-08-10 08:35  gender-classification-master\src\utils.h
     文件      227692  2016-08-10 08:35  gender-classification-master\test
     目录           0  2016-08-10 08:35  gender-classification-master\testPic\
     文件       10514  2016-08-10 08:35  gender-classification-master\testPic\test_01.jpg
     文件        8407  2016-08-10 08:35  gender-classification-master\testPic\test_02.jpg
     文件      116205  2016-08-10 08:35  gender-classification-master\testPic\test_03.jpg
     文件      321591  2016-08-10 08:35  gender-classification-master\testPic\test_04.jpg
     文件       11382  2016-08-10 08:35  gender-classification-master\testPic\test_05.bmp
     文件       11382  2016-08-10 08:35  gender-classification-master\testPic\test_06.bmp
     文件       11382  2016-08-10 08:35  gender-classification-master\testPic\test_07.bmp
     文件       11382  2016-08-10 08:35  gender-classification-master\testPic\test_08.bmp
............此处省略1044个文件信息

评论

共有 条评论