⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 facedemodlg.h

📁 海康威视人脸检测系统!需要海康威视的硬件支持!其中底层用到海康的sdk
💻 H
字号:
// FaceDemoDlg.h : header file
//

#if !defined(AFX_FACEDEMODLG_H__57B2E7BF_CF3A_4905_B9E9_00C31BCB2EC1__INCLUDED_)
#define AFX_FACEDEMODLG_H__57B2E7BF_CF3A_4905_B9E9_00C31BCB2EC1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DlgPreview.h"
#include "HikVisionSdk.h"
#include "myedit.h"
/////////////////////////////////////////////////////////////////////////////
// CFaceDemoDlg dialog

class CFaceDemoDlg : public CDialog
{
// Construction
public:
	HANDLE m_muShowPic;
	CMyEdit * m_edChan[12];
	CMyEdit * m_edTime[12];
	unsigned char * m_tempBuf;
	int m_nType;
	CString m_csPath;
	CFaceDemoDlg(CWnd* pParent = NULL);	// standard constructor
	int SetCurrentChan(int ichannel);//设置当前通道
	int PreviewDbclk(int ichannel);//双击响应
	void ShowPicture(CDC* pDC, IPicture *pPic,int index);//显示图像
	IPicture *m_pPic;
	CString m_strFileName;
	CString * m_csChan[12];
    CString * m_csTime[12];
	CDlgPreview m_cvWindow[4];
	char * m_pBuff;
	int m_nChannel;//保存显示通道号
	BOOL m_bStartCap;
	BOOL m_bColorFace;
	int OnClientMessage(WPARAM wParam, LPARAM lParam);
	CRect rect;//保存pic控件区域
// Dialog Data
	//{{AFX_DATA(CFaceDemoDlg)
	enum { IDD = IDD_FACEDEMO_DIALOG };
	CMyEdit	m_edTime9;
	CMyEdit	m_edTime8;
	CMyEdit	m_edTime7;
	CMyEdit	m_edTime6;
	CMyEdit	m_edTime5;
	CMyEdit	m_edTime4;
	CMyEdit	m_edTime3;
	CMyEdit	m_edTime2;
	CMyEdit	m_edTime11;
	CMyEdit	m_edTime10;
	CMyEdit	m_edTime1;
	CMyEdit	m_edTime0;
	CMyEdit	m_edChan9;
	CMyEdit	m_edChan8;
	CMyEdit	m_edChan7;
	CMyEdit	m_edChan6;
	CMyEdit	m_edChan5;
	CMyEdit	m_edChan4;
	CMyEdit	m_edChan3;
	CMyEdit	m_edChan2;
	CMyEdit	m_edChan12;
	CMyEdit	m_edChan11;
	CMyEdit	m_edChan10;
	CMyEdit	m_edChan1;
	CComboBox	m_cmbType;
	CString	m_csTime1;
	CString	m_csTime10;
	CString	m_csTime11;
	CString	m_csTime2;
	CString	m_csTime4;
	CString	m_csTime3;
	CString	m_csTime6;
	CString	m_csTime7;
	CString	m_csTime8;
	CString	m_csTime9;
	CString	m_csTime0;
	BOOL	m_bSaveFile;
	UINT	m_nJpegQuality;
	UINT	m_nFrameInterval;
	CString	m_csChan1;
	CString	m_csChan10;
	CString	m_csChan11;
	CString	m_csChan12;
	CString	m_csChan2;
	CString	m_csChan3;
	CString	m_csChan4;
	CString	m_csChan5;
	CString	m_csChan6;
	CString	m_csChan7;
	CString	m_csChan8;
	CString	m_csChan9;
	CString	m_csTime5;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFaceDemoDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
    BOOL m_bInited;//初始化是否完成标志
	// Generated message map functions
	afx_msg void OnChangeFaceType(UINT nID);
	//{{AFX_MSG(CFaceDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnMove(int x, int y);
	afx_msg void OnStartCap();
	afx_msg void OnStopCap();
	afx_msg void OnExit();
	afx_msg void OnClose();
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnCheckFile();
	afx_msg void OnStopall();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FACEDEMODLG_H__57B2E7BF_CF3A_4905_B9E9_00C31BCB2EC1__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -