gaze  0.1.0
Perform gaze tracking with common webcams.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
gaze_capture.h
1 #ifndef INCLUDE_GAZE_PIPELINE_STEPS_GAZE_CAPTURE_H_
2 #define INCLUDE_GAZE_PIPELINE_STEPS_GAZE_CAPTURE_H_
3 
4 #ifdef HAS_CAFFE
5  #include "itracker/itracker.h"
6 
7  #include "opencv2/opencv.hpp"
8 #endif
9 
10 #include "gaze/gui/visualizeable.h"
11 #include "gaze/pipeline_step.h"
12 #include "gaze/util/data.h"
13 
14 
15 namespace gaze {
16 
17 namespace pipeline {
18 
29 class GazeCapture final
30  : public PipelineStep,
32  #ifdef HAS_CAFFE
34 
35  cv::Vec2d camera_offset;
36  cv::Vec2d screen_size_m;
37  cv::Vec2d target_size;
38  #endif
39 
40  public:
41  GazeCapture();
42 
49  void process(util::Data& data) override;
50 
56  void visualize(util::Data& data) override;
57 };
58 
59 } // namespace pipeline
60 
61 } // namespace gaze
62 
63 #endif // INCLUDE_GAZE_PIPELINE_STEPS_GAZE_CAPTURE_H_
64 
void process(util::Data &data) override
void visualize(util::Data &data) override
Abstract base class for PipelineSteps. Must be inherited from.
Definition: pipeline_step.h:18
Implements VisualizeableBase for several widget types.
Uses iTracker to track Gaze.
Definition: gaze_capture.h:29
Wraps the data acquired per frame into a single instance.
Definition: data.h:27