gaze
0.1.0
Perform gaze tracking with common webcams.
|
Wraps the data acquired per frame into a single instance. More...
#include "gaze/util/data.h"
Public Member Functions | |
Constructors | |
Data () | |
Data (const Data &data) | |
Data & | operator= (Data data) |
Public Attributes | |
dlib::array< dlib::point > | centers |
std::map< std::string, double > | execution_times |
Input image | |
cv::Mat | source_image |
dlib::array2d< dlib::bgr_pixel > | image |
Landmarks | |
dlib::full_object_detection | landmarks |
dlib::array< dlib::array2d < double > > | eyes |
Head pose | |
cv::Mat | head_rotation |
cv::Mat | head_translation |
Gaze point | |
std::vector< cv::Vec3d > | pupils |
std::vector< cv::Vec3d > | gaze_points |
cv::Vec2d | estimated_gaze_point |
Wraps the data acquired per frame into a single instance.
This data can then be written in different data formats. ///
dlib::array<dlib::point> gaze::util::Data::centers |
Eye center locations.
Definition at line 75 of file data.h.
Referenced by gaze::pipeline::EyeLike::process(), gaze::pipeline::PupilLocalization::process(), gaze::pipeline::GazePointCalculation::process(), gaze::pipeline::EyeLike::visualize(), and gaze::pipeline::PupilLocalization::visualize().
cv::Vec2d gaze::util::Data::estimated_gaze_point |
The mean gaze point in screen coordinates.
Definition at line 105 of file data.h.
Referenced by gaze::GazeTracker::get_current_gaze_point(), gaze::pipeline::GazeCapture::process(), gaze::pipeline::GazePointCalculation::process(), and gaze::pipeline::GazeCapture::visualize().
std::map<std::string, double> gaze::util::Data::execution_times |
Maps the step identifiers to their processing times.
Definition at line 111 of file data.h.
Referenced by gaze::gui::DebugWindow::process_data().
dlib::array<dlib::array2d<double> > gaze::util::Data::eyes |
The 0th element is the right eye, the 1st the left eye.
Definition at line 69 of file data.h.
Referenced by gaze::util::operator<<(), gaze::pipeline::PupilLocalization::process(), gaze::pipeline::EyeLike::visualize(), and gaze::pipeline::PupilLocalization::visualize().
std::vector<cv::Vec3d> gaze::util::Data::gaze_points |
The gaze points in model coordinates.
Definition at line 100 of file data.h.
Referenced by gaze::pipeline::GazePointCalculation::process().
cv::Mat gaze::util::Data::head_rotation |
The head orientation.
Definition at line 82 of file data.h.
Referenced by gaze::pipeline::HeadPoseEstimation::process(), gaze::pipeline::GazePointCalculation::process(), and gaze::pipeline::GazePointCalculation::visualize().
cv::Mat gaze::util::Data::head_translation |
The head translation.
Definition at line 87 of file data.h.
Referenced by gaze::pipeline::HeadPoseEstimation::process(), gaze::pipeline::GazePointCalculation::process(), and gaze::pipeline::GazePointCalculation::visualize().
dlib::array2d<dlib::bgr_pixel> gaze::util::Data::image |
The source image for dlib.
Definition at line 52 of file data.h.
Referenced by gaze::util::operator<<(), gaze::pipeline::FaceLandmarks::process(), gaze::pipeline::GazeCapture::process(), gaze::pipeline::SourceCapture::process(), gaze::pipeline::PupilLocalization::process(), gaze::pipeline::EyeLike::visualize(), gaze::pipeline::FaceLandmarks::visualize(), gaze::pipeline::SourceCapture::visualize(), gaze::pipeline::HeadPoseEstimation::visualize(), and gaze::pipeline::PupilLocalization::visualize().
dlib::full_object_detection gaze::util::Data::landmarks |
These landmarks are detected by the model. They contain information about the face (dlib::full_object_detection::get_rect()) and about the eyes (use util::get_eyes_chip_details).
Definition at line 64 of file data.h.
Referenced by gaze::util::operator<<(), gaze::pipeline::EyeLike::process(), gaze::pipeline::FaceLandmarks::process(), gaze::pipeline::GazeCapture::process(), gaze::pipeline::HeadPoseEstimation::process(), gaze::pipeline::PupilLocalization::process(), gaze::pipeline::GazePointCalculation::process(), gaze::pipeline::EyeLike::visualize(), gaze::pipeline::FaceLandmarks::visualize(), gaze::pipeline::PupilLocalization::visualize(), and gaze::pipeline::GazePointCalculation::visualize().
std::vector<cv::Vec3d> gaze::util::Data::pupils |
The pupils in model coordinates.
Definition at line 95 of file data.h.
Referenced by gaze::pipeline::GazePointCalculation::process(), and gaze::pipeline::GazePointCalculation::visualize().
cv::Mat gaze::util::Data::source_image |
The unaltered image from the source stream.
Definition at line 47 of file data.h.
Referenced by gaze::util::operator<<(), gaze::pipeline::EyeLike::process(), gaze::pipeline::SourceCapture::process(), and gaze::pipeline::HeadPoseEstimation::read_or_set_camera_matrix().