?? videowin.h
字號(hào):
#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_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -