資源簡介
疲勞檢測程序,通過檢測人眼并判斷是否是疲勞駕車并報警
代碼片段和文件信息
//?Fatiguedetection.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Fatiguedetection.h“
#include?“FatiguedetectionDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFatiguedetectionApp
BEGIN_MESSAGE_MAP(CFatiguedetectionApp?CWinApp)
//{{AFX_MSG_MAP(CFatiguedetectionApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CFatiguedetectionApp?construction
CFatiguedetectionApp::CFatiguedetectionApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFatiguedetectionApp?object
CFatiguedetectionApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFatiguedetectionApp?initialization
BOOL?CFatiguedetectionApp::InitInstance()
{
AfxEnableControlContainer();
//?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.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CFatiguedetectionDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)//?確定鍵
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
cvReleaseImage(?&dlg.TheImage?);//釋放指針
????????cvReleaseImage(?&dlg.TheImage1?);
}
else?if?(nResponse?==?IDCANCEL)//?取消按鈕?
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
cvReleaseImage(?&dlg.TheImage?);//釋放指針
cvReleaseImage(?&dlg.TheImage1?);
}
//?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??2013-04-26?17:39??Fatiguedetection\
?????文件??????209452??2009-06-07?01:47??Fatiguedetection\ALARM.WAV
?????目錄???????????0??2013-04-26?17:39??Fatiguedetection\Debug\
?????文件?????5858304??2013-03-19?12:23??Fatiguedetection\Debug\Fatiguedetection.bsc
?????文件?????2134095??2013-03-19?12:23??Fatiguedetection\Debug\Fatiguedetection.exe
?????文件?????2524748??2013-03-19?12:23??Fatiguedetection\Debug\Fatiguedetection.ilk
?????文件???????16506??2012-11-08?17:27??Fatiguedetection\Debug\Fatiguedetection.obj
?????文件?????6931360??2012-06-01?13:30??Fatiguedetection\Debug\Fatiguedetection.pch
?????文件?????4097024??2012-12-26?15:05??Fatiguedetection\Debug\Fatiguedetection.pdb
?????文件????????9160??2012-11-08?17:02??Fatiguedetection\Debug\Fatiguedetection.res
?????文件???????????0??2012-11-08?17:27??Fatiguedetection\Debug\Fatiguedetection.sbr
?????文件???????55021??2013-03-19?12:23??Fatiguedetection\Debug\FatiguedetectionDlg.obj
?????文件???????????0??2013-03-19?12:23??Fatiguedetection\Debug\FatiguedetectionDlg.sbr
?????文件??????105724??2012-06-01?13:30??Fatiguedetection\Debug\StdAfx.obj
?????文件?????1353341??2012-06-01?13:30??Fatiguedetection\Debug\StdAfx.sbr
?????文件????????7868??2012-12-14?15:21??Fatiguedetection\Debug\Video.obj
?????文件???????????0??2012-12-14?15:21??Fatiguedetection\Debug\Video.sbr
?????文件??????246784??2013-03-19?12:23??Fatiguedetection\Debug\vc60.idb
?????文件??????430080??2012-12-26?15:05??Fatiguedetection\Debug\vc60.pdb
?????文件???????36952??2012-11-08?16:53??Fatiguedetection\Fatiguedetection.aps
?????文件????????1754??2013-04-09?13:45??Fatiguedetection\Fatiguedetection.clw
?????文件????????2401??2012-11-08?15:28??Fatiguedetection\Fatiguedetection.cpp
?????文件????????4443??2011-06-01?11:54??Fatiguedetection\Fatiguedetection.dsp
?????文件?????????557??2012-05-25?08:55??Fatiguedetection\Fatiguedetection.dsw
?????文件????????1575??2012-10-16?15:49??Fatiguedetection\Fatiguedetection.h
?????文件???????82944??2013-04-09?13:45??Fatiguedetection\Fatiguedetection.ncb
?????文件?????1101312??2013-04-09?13:45??Fatiguedetection\Fatiguedetection.opt
?????文件????????1061??2013-03-19?12:23??Fatiguedetection\Fatiguedetection.plg
?????文件????????6167??2012-11-08?16:53??Fatiguedetection\Fatiguedetection.rc
?????文件???????13982??2012-12-25?18:43??Fatiguedetection\FatiguedetectionDlg.cpp
?????文件????????2243??2012-11-08?17:27??Fatiguedetection\FatiguedetectionDlg.h
............此處省略41個文件信息
- 上一篇:C語言與系統仿真 有源代碼。
- 下一篇:操作系統實驗多線程同步含C++源代碼
評論
共有 條評論