GazeTracker
Observer.h
1 #include "visageVision.h"
2 
3 
4 using namespace VisageSDK;
5 
6 
7 /**
8 * This implementation is used to demonstrate the use of screen space gaze data returned by the tracker.
9 * It is used to store tracking data passed as a parameter after ViasgeSDK::VisageTracker::track() is called.
10 * The stored tracking data is used in the main application loop and passed to the GazeRenderer object to be displayed on the screen.
11 **/
12 class Observer
13 {
14 public:
15  Observer(void);
16  ~Observer(void);
17 
18  /**
19  * This function is called once for every video frame. The method recieves the latest VisageSDK::FaceData object as a parameter and stores it in order to be available to main application loop.
20  */
21  void Notify(FaceData& trackingData, int trackerStatus, VsImage* frame);
22  int track_stat;
23 
24  float scaleX;
25  float scaleY;
26  float camOffsetX;
27  float camOffsetY;
28  int resolutionX;
29  int resolutionY;
30  float scalingFactor;
31 
32  float gazeScaleX;
33  float gazeScaleY;
34 
35  long timestamp;
36  long recalibTimestamp;
37 
38  FaceData trackingData;
39  VsImage* image;
40  ScreenSpaceGazeData gazeData;
41  int notifyCount;
42 
43 private:
44 
45 };
This implementation is used to demonstrate the use of screen space gaze data returned by the tracker...
Definition: Observer.h:12