45 double overlapping_threshold = 0.4
53 const std::vector<std::vector<Face_detection> >& face_data
57 template<
class InputIterator>
67 for(InputIterator it = first; it != last; it++)
72 (trajs.find(entity_id)->second).at(frame)->value.face_dir
73 =
Vector2(it->yaw(), it->pitch());
Generic_trajectory_map< Bbox > Box_trajectory_map
Definition: pt_box_trajectory.h:44
Axis_aligned_rectangle_2d Bbox
Definition: d_bbox.h:29
Entity + index; used for file I/O.
Definition: tracking_entity.h:82
void estimate_gaze_direction_from_data(const Box_trajectory_map &btrajs, Trajectory_map &trajs, const std::vector< std::vector< Face_detection > > &face_data)
Estimate the gaze direction from face.com.
Definition: pt_gaze.cpp:73
bool get_corresponding_entity(const Bbox &face_box, const Box_trajectory_map &body_trajs, Entity_id &entity_id, size_t index, double overlapping_threshold=0.4)
Get the corresponding person based on the face box.
Definition: pt_gaze.cpp:35
Represents a set of trajectories; it is a map from entity to trajectory.
Definition: tracking_trajectory.h:53
Generic_trajectory_map< Complete_state > Trajectory_map
Definition: pt_complete_trajectory.h:43
Vector_d< 2 > Vector2
Definition: gr_opengl.h:35