基于 vs2010 opencv的人脸识别系统


系统是学期结束做的学期大作业,有免安装版直接测试功能,有完整的源码,保证完整无误,配置环境自行百度即可 。实现了人脸识别 人脸标识 ,训练样本后能识别出训练对象,大家可以继续改进,学习
资源截图
代码片段和文件信息

// FaceDetector.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “FaceDetector.h“
#include “FaceDetectorDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CFaceDetectorApp

BEGIN_MESSAGE_MAP(CFaceDetectorApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CFaceDetectorApp construction

CFaceDetectorApp::CFaceDetectorApp()
{
// support Restart Manager
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;

// TODO: add construction code here
// Place all significant initialization in InitInstance
}


// The one and only CFaceDetectorApp object

CFaceDetectorApp theApp;


// CFaceDetectorApp initialization

BOOL CFaceDetectorApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles.  Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();


AfxEnableControlContainer();

// Create the shell manager in case the dialog contains
// any shell tree view or shell list view controls.
CShellManager *pShellManager = new CShellManager;

// Activate “Windows Native“ visual manager for enabling themes in MFC controls
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

CFaceDetectorDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}
else if (nResponse == -1)
{
TRACE(traceAppMsg 0 “Warning: dialog creation failed so application is terminating unexpectedly.
“);
TRACE(traceAppMsg 0 “Warning: if you are using MFC controls on the dialog you cannot #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS.
“);
}

// Delete the shell manager created above.
if (pShellManager != NULL)
{
delete pShellManager;
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-05-31 15:08  人脸识别免安装程序
     目录           0  2017-05-29 19:35  人脸识别免安装程序Debug
     文件     9081856  2017-05-29 19:28  人脸识别免安装程序DebugFaceDetector.exe
     文件      777721  2013-11-13 17:44  人脸识别免安装程序Debughaarcascade_mcs_lefteye.xml
     文件     1383113  2013-11-13 17:44  人脸识别免安装程序Debughaarcascade_mcs_righteye.xml
     文件       51856  2013-11-13 17:44  人脸识别免安装程序Debuglbpcascade_frontalface.xml
     文件      815272  2013-10-05 02:38  人脸识别免安装程序Debugmsvcp120d.dll
     文件     1824424  2013-10-05 02:38  人脸识别免安装程序Debugmsvcr120d.dll
     文件     1506304  2014-04-15 17:19  人脸识别免安装程序Debugopencv_calib3d249d.dll
     文件     2360320  2014-04-15 17:20  人脸识别免安装程序Debugopencv_contrib249d.dll
     文件     3515392  2014-04-15 17:18  人脸识别免安装程序Debugopencv_core249d.dll
     文件     1464832  2014-04-15 17:19  人脸识别免安装程序Debugopencv_features2d249d.dll
     文件     1163264  2014-04-15 17:18  人脸识别免安装程序Debugopencv_flann249d.dll
     文件     3697152  2014-04-15 17:19  人脸识别免安装程序Debugopencv_highgui249d.dll
     文件     3144192  2014-04-15 17:18  人脸识别免安装程序Debugopencv_imgproc249d.dll
     文件     1048064  2014-04-15 17:18  人脸识别免安装程序Debugopencv_ml249d.dll
     文件     1432576  2014-04-15 17:19  人脸识别免安装程序Debugopencv_objdetect249d.dll
     文件      692736  2014-04-15 17:18  人脸识别免安装程序Debugopencv_video249d.dll
     文件     1362801  2017-05-31 15:10  人脸识别免安装程序DebugTrainedModel.xml
     文件      772784  2013-10-05 02:38  人脸识别免安装程序Debugvccorlib120d.dll
     目录           0  2017-05-31 13:20  人脸识别源程序
     目录           0  2017-06-02 12:25  人脸识别源程序FaceDetector源程序
     目录           0  2017-06-02 12:24  人脸识别源程序FaceDetector源程序Debug
     目录           0  2017-06-02 12:24  人脸识别源程序FaceDetector源程序FaceDetector
     文件        1257  2017-05-27 15:56  人脸识别源程序FaceDetector源程序FaceDetector.sln
     文件       20992  2017-06-02 12:25  人脸识别源程序FaceDetector源程序FaceDetector.suo
     文件       32256  2015-07-18 23:44  人脸识别源程序FaceDetector源程序FaceDetector.v12.suo
     目录           0  2017-06-02 12:24  人脸识别源程序FaceDetector源程序FaceDetectorDebug
     文件     1031068  2017-05-29 19:28  人脸识别源程序FaceDetector源程序FaceDetectorFaceDetector.aps
     文件        2993  2015-07-17 17:32  人脸识别源程序FaceDetector源程序FaceDetectorFaceDetector.cpp
     文件         541  2015-07-17 17:32  人脸识别源程序FaceDetector源程序FaceDetectorFaceDetector.h
............此处省略26个文件信息

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

发表评论

评论列表(条)