gaze
0.1.0
Perform gaze tracking with common webcams.
|
Uses iTracker to track Gaze. More...
#include "gaze/pipeline_steps/gaze_capture.h"
Public Member Functions | |
void | process (util::Data &data) override |
void | visualize (util::Data &data) override |
Public Member Functions inherited from gaze::PipelineStep | |
PipelineStep () | |
std::string | get_name () |
virtual | ~PipelineStep ()=default |
Public Member Functions inherited from gaze::gui::Visualizeable< widget_type > | |
std::shared_ptr< dlib::drawable > | init (dlib::drawable_window &parent, int width, int height, std::string text="No visualization.") final |
void | remove_widget () override |
Public Member Functions inherited from gaze::gui::VisualizeableBase | |
virtual | ~VisualizeableBase ()=default |
Additional Inherited Members | |
Protected Attributes inherited from gaze::PipelineStep | |
int | number |
std::string | name |
Protected Attributes inherited from gaze::gui::Visualizeable< widget_type > | |
std::shared_ptr< widget_type > | widget |
Uses iTracker to track Gaze.
This step does nothing if not compiled using the -DWITH_CAFFE=ON option.
If it is compiled, it holds a pointer to an instance of itracker::ITracker, which it passes extracted eyes, the face, and a face mask to. It then maps the result to the target area on the screen.
Definition at line 29 of file gaze_capture.h.
|
overridevirtual |
Estimates the gaze point using iTracker.
data | The data object to be updated. |
data
the modified data object. Implements gaze::PipelineStep.
Definition at line 73 of file gaze_capture.cpp.
References gaze::util::Data::estimated_gaze_point, gaze::util::get_eyes_chip_details(), gaze::util::Data::image, gaze::util::Data::landmarks, left(), mask, right(), and toMat().
|
overridevirtual |
Visualizes the estimated gaze point.
data | The data object to be visualized. |
Implements gaze::gui::VisualizeableBase.
Definition at line 107 of file gaze_capture.cpp.
References std::cout, std::endl(), and gaze::util::Data::estimated_gaze_point.