FaceTracker2
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CVisionExampleDoc Class Reference

The document. More...

#include <VisionExampleDoc.h>

Inherits CDocument.

Classes

struct  Action
 Structure that holds the action and its accompanying messages and images that will be displayed to user during action verification. More...
 

Public Member Functions

void init ()
 Initialisation. More...
 
void SetLivenessActions ()
 Initializes liveness detection. More...
 
void RandomizeActions ()
 Shuffles array of actions.
 
void ReleaseActions ()
 Releases objects alocated for liveness detection.
 
afx_msg void OnTrackingStop ()
 Stop tracking. More...
 
afx_msg void OnTrackingTrackfromvideo ()
 The main function for tracking from a video file. More...
 
afx_msg void OnTrackingTrackfromcam ()
 The main function for tracking from a video camera connected to the computer. More...
 
afx_msg void OnTrackingTrackinimage ()
 The main function for tracking in a static image. More...
 
afx_msg void OnLivenessStart ()
 The main function for liveness detection. More...
 

Public Attributes

VisageTracker * m_Tracker
 The Face Tracker object (VisageTracker). More...
 
Action actions [NUM_ACTIONS]
 Array of actions that will need to be verified.
 
VisageLivenessAction * BrowRaiseAction
 VisageLivenessBrowRaise object. More...
 
VisageLivenessAction * SmileAction
 VisageLivenessSmile object. More...
 
VisageLivenessAction * BlinkAction
 VisageLivenessBlink object. More...
 
IplImage * testImage
 Test image used for demonstrating raw image tracking interface.
 
COpenGLWnd * m_OpenGLWnd
 The OpenGL window. More...
 
std::string fbaFileName
 fbaFileName. More...
 
FILE * datafile
 Data file. More...
 

Static Public Attributes

static const int MAX_ACTION_STATES = 5
 Maximal number of states that the actions will have. More...
 
static const int NUM_ACTIONS = 3
 Number of actions that will need to be verified in order to confirm liveness.
 

Detailed Description

The document.

Definition at line 104 of file VisionExampleDoc.h.

Member Function Documentation

void CVisionExampleDoc::init ( )

Initialisation.

Initializes the tracker. Called from CVisionExampleApp::InitInstance().

Definition at line 197 of file VisionExampleDoc.cpp.

References m_OpenGLWnd, and m_Tracker.

void CVisionExampleDoc::OnLivenessStart ( )

The main function for liveness detection.

It is called when the Liveness->Perform liveness menu item is chosen.

Definition at line 1055 of file VisionExampleDoc.cpp.

References m_OpenGLWnd.

void CVisionExampleDoc::OnTrackingStop ( )

Stop tracking.

It is called when Tracking->Stop menu item is chosen.

This function stops the face tracking operation.

Definition at line 325 of file VisionExampleDoc.cpp.

References m_OpenGLWnd, m_Tracker, and COpenGLWnd::RenderToScreen().

void CVisionExampleDoc::OnTrackingTrackfromcam ( )

The main function for tracking from a video camera connected to the computer.

It is called when the Tracking->Track from Cam menu item is chosen.

See also
OnTrackingTrackfromvideo()

Definition at line 702 of file VisionExampleDoc.cpp.

References datafile, m_OpenGLWnd, m_Tracker, and VisageSDK::VisageTracker::setTrackerConfiguration().

void CVisionExampleDoc::OnTrackingTrackfromvideo ( )

The main function for tracking from a video file.

It is called when the Tracking->Track From Video menu item is chosen.

See also
OnTrackingTrackfromcam()

Definition at line 553 of file VisionExampleDoc.cpp.

References datafile, fbaFileName, m_OpenGLWnd, m_Tracker, VisageSDK::FolderManager::popPath(), VisageSDK::FolderManager::pushPath(), and VisageSDK::VisageTracker::setTrackerConfiguration().

void CVisionExampleDoc::OnTrackingTrackinimage ( )

The main function for tracking in a static image.

The main purpose is to demonstrate the raw image interface for the tracker.

See also
OnTrackingTrackfromvideo()

Definition at line 843 of file VisionExampleDoc.cpp.

References m_OpenGLWnd.

void CVisionExampleDoc::SetLivenessActions ( )

Initializes liveness detection.

Sets array of actions that will need to be verified with accompanying messages and images that will be displayed to user during liveness verification.

Definition at line 867 of file VisionExampleDoc.cpp.

References actions, BlinkAction, BrowRaiseAction, and SmileAction.

Member Data Documentation

VisageLivenessAction* CVisionExampleDoc::BlinkAction

VisageLivenessBlink object.

Used to verify that the user has blinked.

Definition at line 183 of file VisionExampleDoc.h.

Referenced by ReleaseActions(), and SetLivenessActions().

VisageLivenessAction* CVisionExampleDoc::BrowRaiseAction

VisageLivenessBrowRaise object.

Used to verify that the user has raised its eyebrows.

Definition at line 171 of file VisionExampleDoc.h.

Referenced by ReleaseActions(), and SetLivenessActions().

FILE* CVisionExampleDoc::datafile

Data file.

This file will contain written data for each frame of the video. Data is written as CSV file where each line contains data for one frame separated with ';'. The first line contains data header describing meaning of that column.

Definition at line 213 of file VisionExampleDoc.h.

Referenced by OnTrackingTrackfromcam(), and OnTrackingTrackfromvideo().

std::string CVisionExampleDoc::fbaFileName

fbaFileName.

This string contains the name of the .fba file where the facial movements will be encoded.

Definition at line 202 of file VisionExampleDoc.h.

Referenced by OnTrackingTrackfromvideo().

COpenGLWnd* CVisionExampleDoc::m_OpenGLWnd

The OpenGL window.

An OpenGL window with camera manipulation facilities. It is used by VisageTracker as an TrackerOpenGLInterface and TrackerGUIInterface, and also to render the animated 3D face model.

Definition at line 194 of file VisionExampleDoc.h.

Referenced by init(), OnLivenessStart(), OnTrackingStop(), OnTrackingTrackfromcam(), OnTrackingTrackfromvideo(), and OnTrackingTrackinimage().

VisageTracker* CVisionExampleDoc::m_Tracker

The Face Tracker object (VisageTracker).

It is used to track the user's face from video and encode the tracked movements into MPEG-4 FAPs.

Definition at line 140 of file VisionExampleDoc.h.

Referenced by init(), OnTrackingStop(), OnTrackingTrackfromcam(), and OnTrackingTrackfromvideo().

const int CVisionExampleDoc::MAX_ACTION_STATES = 5
static

Maximal number of states that the actions will have.

It should be set to the number of states that the action with maximal number of states has.

Definition at line 146 of file VisionExampleDoc.h.

VisageLivenessAction* CVisionExampleDoc::SmileAction

VisageLivenessSmile object.

Used to verify that the user has smiled.

Definition at line 177 of file VisionExampleDoc.h.

Referenced by ReleaseActions(), and SetLivenessActions().


The documentation for this class was generated from the following files: