Click here to Skip to main content
15,886,026 members
Articles / Desktop Programming / MFC

TrackEye : Real-Time Tracking Of Human Eyes Using a Webcam

Rate me:
Please Sign up or sign in to vote.
4.95/5 (117 votes)
12 Jun 2008CPOL6 min read 1.2M   78K   367  
Real-Time Tracking of Human Eyes in video sequences for Human-Computer Interaction using a webcam
#if !defined(AFX_TRACKINGSETTINGS_H__82272CA1_A6E4_11D9_938B_F075F93C6E68__INCLUDED_)
#define AFX_TRACKINGSETTINGS_H__82272CA1_A6E4_11D9_938B_F075F93C6E68__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TrackingSettings.h : header file
//

#include "cv.h"
#include "highgui.h"
#include "TrackingParameters.h"
#include "ColorSelector.h"
#include "IconButton.h"


/////////////////////////////////////////////////////////////////////////////
// TrackingSettings dialog

class TrackingSettings : public CDialog
{
// Construction
public:
	bool ChooseFolder(char* folderName);
	ColorSelector programColors;
	CvPoint point2;
	CvPoint point1;
	CvCapture* Camera;
	IplImage* CameraFrame;
	int cameraControl;
	TrackingParameters* params;
	TrackingSettings(CWnd* pParent = NULL);   // standard constructor
	CString videoFile;

// Dialog Data
	//{{AFX_DATA(TrackingSettings)
	enum { IDD = IDD_TRACKINGSETTINGS_DIALOG };
	CIconButton	m_saveAndClose;
	CIconButton	m_SnakeSettings;
	CIconButton	m_ChooseDirectory;
	CIconButton	m_ThresholdSettings;
	CComboBox	m_Colorspace;
	CSpinButtonCtrl	m_spin2;
	CSpinButtonCtrl	m_spin1;
	CButton	m_Check1;
	CString	m_DBdirectory;
	CString recordFolder;
	int		m_NeigenEyes;
	int		m_NImages;
	int		m_HUEw;
	int		m_HUEh;
	int		m_MaxError;
	float	m_Ratio;
	int		m_Component;
	int		m_variance;
	int		m_eyeAlgorithm;
	int		m_faceAlgorithm;
	int		m_source;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(TrackingSettings)
	afx_msg void OnCheck1();
	virtual BOOL OnInitDialog();
	afx_msg void OnCheck2();
	afx_msg void OnSaveAndClose();
	afx_msg void OnDeltaposSpin1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDeltaposSpin2(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDefineHUE();
	afx_msg void OnUpdateRectangle();
	afx_msg void OnClose();
	afx_msg void OnSaveHUE();
	afx_msg void OnThresholdSettings();
	afx_msg void OnChoosedirectory();
	afx_msg void OnSnakeSettings();
	afx_msg void OnVarianceCheck();
	afx_msg void OnSelectfile();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TRACKINGSETTINGS_H__82272CA1_A6E4_11D9_938B_F075F93C6E68__INCLUDED_)



By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer ASELSAN A.S.
Turkey Turkey
Zafer is an electronics engineer living in Ankara/Turkey and working for ASELSAN A.S./TMM.
He has been coding for about 12 years, and can't think a life without C/C++.

He likes
- MS Visual C++ 6.0 and MFC
- .NET C#
- All kinds of electronics stuff
- Machine Vision projects

Also he enjoys
- Listening to "The Cranberries" & "The Glorious Dolores"
- Travelling

E-mail : zafersavas@yahoo.com

Comments and Discussions