📄 videowin.h
字号:
#if !defined(AFX_VIDEOWIN_H__939FDEF1_2760_43FC_BE5F_C086126F823A__INCLUDED_)
#define AFX_VIDEOWIN_H__939FDEF1_2760_43FC_BE5F_C086126F823A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// VideoWin.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CVideoWin window
#define STATE_NOVIEW 0
#define STATE_PREVIEW 1
#define STATE_PAUSE 2
#define STATE_STOP 3
#define STATE_FACEDETECT 4
#define STATE_CAMSHIFT 5
#include "cv.h"
#include "highgui.h"
static CvMemStorage* storage = 0;
static CvHaarClassifierCascade* cascade = 0;
class CVideoWin : public CStatic
{
// Construction
public:
CVideoWin();
void StartVideoPreview();
void PauseVideoPreview();
void StopVideoPreview();
bool FaceDectectInit();
void detect_and_draw( IplImage* image );
CvScalar hsv2rgb( float hue );
void CamShif();
void DrawNoviewBackGround();
// Attributes
public:
int m_State;
bool flag_Preview;
bool flag_Pause;
bool flag_Stop;
bool flag_facedetect;
IplImage* g_src ;
IplImage* g_image;
IplImage* g_dest ;
CvCapture* g_capture;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVideoWin)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CVideoWin();
// Generated message map functions
protected:
//{{AFX_MSG(CVideoWin)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VIDEOWIN_H__939FDEF1_2760_43FC_BE5F_C086126F823A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -