gaze  0.1.0
Perform gaze tracking with common webcams.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
source_capture.h
1 #ifndef INCLUDE_GAZE_PIPELINE_STEPS_SOURCE_CAPTURE_H_
2 #define INCLUDE_GAZE_PIPELINE_STEPS_SOURCE_CAPTURE_H_
3 
4 #include <memory>
5 #include <string>
6 
7 #include "opencv2/opencv.hpp"
8 
9 #include "gaze/gui/visualizeable.h"
10 #include "gaze/pipeline_step.h"
11 #include "gaze/util/data.h"
12 
13 
14 namespace gaze {
15 
16 namespace pipeline {
17 
24 class SourceCapture final
25  : public PipelineStep,
27  cv::VideoCapture video_capture;
28  cv::Mat last_frame;
29 
30  public:
40  SourceCapture();
42 
43  ~SourceCapture();
44 
45  public:
53  void process(util::Data& data) override;
54 
61  void visualize(util::Data& data) override;
62 };
63 
64 } // namespace pipeline
65 
66 } // namespace gaze
67 
68 #endif // INCLUDE_GAZE_PIPELINE_STEPS_SOURCE_CAPTURE_H_
Abstract base class for PipelineSteps. Must be inherited from.
Definition: pipeline_step.h:18
void process(util::Data &data) override
void visualize(util::Data &data) override
Implements VisualizeableBase for several widget types.
Retrieves frames from a webcam or video source.
Wraps the data acquired per frame into a single instance.
Definition: data.h:27