gaze  0.1.0
Perform gaze tracking with common webcams.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
itracker.h
1 
8 #ifndef INCLUDE_ITRACKER_ITRACKER_H_
9 #define INCLUDE_ITRACKER_ITRACKER_H_
10 
11 #include <string>
12 #include <vector>
13 
14 #include "opencv2/opencv.hpp"
15 
16 
17 namespace itracker {
18 
25 class ITrackerImpl;
26 
31 class ITracker {
32  ITrackerImpl* impl;
33 
34  public:
47  ITracker(const std::string& model_file,
48  const std::string& weights_file,
49  const std::string& mean_left_eye_file,
50  const std::string& mean_right_eye_file,
51  const std::string& mean_face_file);
52 
53  ~ITracker();
54 
66  cv::Vec2f predict(const cv::Mat& left_eye, const cv::Mat& right_eye,
67  const cv::Mat& face, const cv::Mat& face_mask);
68 };
69 
70 } // namespace itracker
71 
72 #endif // INCLUDE_ITRACKER_ITRACKER_H_
cv::Vec2f predict(const cv::Mat &left_eye, const cv::Mat &right_eye, const cv::Mat &face, const cv::Mat &face_mask)
Definition: itracker.cpp:149
Implements a wrapper around the pre-trained caffe model by .
Definition: itracker.h:31
A private implementation of ITracker to hide dependencies from including classes. ...
Definition: itracker.cpp:15
ITracker(const std::string &model_file, const std::string &weights_file, const std::string &mean_left_eye_file, const std::string &mean_right_eye_file, const std::string &mean_face_file)
Definition: itracker.cpp:140