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

📄 testlibdlg.h

📁 人脸检测接口,图像比对源代码
💻 H
字号:
// TestlibDlg.h : header file
//

#if !defined(AFX_TESTLIBDLG_H__44CB4BA6_12B9_4FFB_8792_9ACB3566CE54__INCLUDED_)
#define AFX_TESTLIBDLG_H__44CB4BA6_12B9_4FFB_8792_9ACB3566CE54__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CTestlibDlg dialog
#define DllImp extern "C" _declspec(dllimport)

DllImp typedef struct T_Param
{
	int    MinSize;                    //最小检测宽度
	int    MaxSize;                   //最大检测百分比(100以上认为是100)
} Struct_Param;

DllImp typedef struct T_FaceList
{
	int   Top;                        //人脸坐标
	int   Left;
	int   Bottom;
	int   Right;
	unsigned char *subimgdata;        //人脸图片(尺寸见参数设置)
} Struct_FaceList;

DllImp typedef struct T_FoundFaces
{
	int    Count;                        //人脸个数
	T_FaceList * pFaceList;              //人脸列表
	void  Release();
}Struct_FoundFaces;

DllImp bool FD_Init(void);
DllImp bool FD_SetParam (Struct_Param Param);
//DllImp Struct_Param FD_GetParam(void);
DllImp void FD_GetParam(Struct_Param& Param);
//DllImp Struct_FoundFaces FD_FindFace(unsigned char *imgdata,  bool iscolor, int width, int height);
DllImp bool FD_FindFace( unsigned char *imgdata, bool iscolor, int width, int height, int widthstep, Struct_FoundFaces& fndfaces );
DllImp bool FD_Release(void);
DllImp bool RESULT_Release(Struct_FoundFaces& fndfaces);

class CTestlibDlg : public CDialog
{
// Construction
public:
	CTestlibDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTestlibDlg)
	enum { IDD = IDD_TESTLIB_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestlibDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTestlibDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTest1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TESTLIBDLG_H__44CB4BA6_12B9_4FFB_8792_9ACB3566CE54__INCLUDED_)

⌨️ 快捷键说明

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