gaze  0.1.0
Perform gaze tracking with common webcams.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
face_landmarks.h
1 #ifndef INCLUDE_GAZE_PIPELINE_STEPS_FACE_LANDMARKS_H_
2 #define INCLUDE_GAZE_PIPELINE_STEPS_FACE_LANDMARKS_H_
3 
4 #include "dlib/image_processing.h"
5 #include "dlib/image_processing/frontal_face_detector.h"
6 
7 #include "gaze/gui/visualizeable.h"
8 #include "gaze/pipeline_step.h"
9 #include "gaze/util/data.h"
10 
11 
12 namespace gaze {
13 
14 namespace pipeline {
15 
22 class FaceLandmarks final
23  : public PipelineStep,
25  dlib::frontal_face_detector face_detector;
26  dlib::shape_predictor shape_predictor;
27 
28  public:
31  FaceLandmarks();
32 
41  void process(util::Data& data) override;
42 
46  void visualize(util::Data& data) override;
47 };
48 
49 } // namespace pipeline
50 
51 } // namespace gaze
52 
53 #endif // INCLUDE_GAZE_PIPELINE_STEPS_FACE_LANDMARKS_H_
void visualize(util::Data &data) override
Abstract base class for PipelineSteps. Must be inherited from.
Definition: pipeline_step.h:18
Uses dlibs pretrained models to detect face landmarks.
Implements VisualizeableBase for several widget types.
void process(util::Data &data) override
Wraps the data acquired per frame into a single instance.
Definition: data.h:27