资源简介
疲劳检测程序,通过检测人眼并判断是否是疲劳驾车并报警
代码片段和文件信息
// 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++源代码
相关资源
- opencv人脸检测与跟踪
- opencv+directshow同步打开4个摄像头
- Qt结合OpenCV和VC++实现调用摄像头拍照
- 基于MFC的人脸检测程序使用OpenCV实现
- opencv mfc vs2017读取图片,向图片加入噪
- MFCretry1.rar
- vs2015+opencv3.3+mfc读取摄像头显示在图片
- 应用opencv库项目(Visual Studioc++)的
- c++二维码定位和识别+zbar+opencv+ubuntu
- 喷码字符识别
- 基于OpenCV+MFC的视频监测实现行人检测
- Vs2015+Qt5.8+Opencv读取大恒水晶 MER-131摄
- opencv手写数字识别C++
- OpenCV算法精解 基于Python与C++
- Emgucvopencv+C#例程集锦
- 基于深度学习识别人脸性别和年龄
- opencv-3.4.10.rar
- MFC+VS2013+OPENCV打开视频,带有滑动条拖
- 用MFC实现的基于OPENCV的张正友棋盘格
- 基于opencv的图像修复
- MFC+VS2013+OpenCV打开任意路径下的图片并
- Opencv C++数字图像处理——空域增强
- opencv和C++版相机标定
- yolov3+opencv3.4.2 C++源码
- opencv+c++
- Opencv3.4+VS2017+MFC对话框打开摄像头、截
- 基于MFC OpenCV条码识别
- seetaface开源人脸识别
- kcf目标跟踪代码c++直接在vs2010+opencv
- MFC 使用Opencv调用摄像头并显示画面,
评论
共有 条评论