29 #ifndef FVS_KEYFRAMER_H__ 30 #define FVS_KEYFRAMER_H__ 32 #include "face_video_segment.pb.h" 38 #include <sfl/sequence_face_landmarks.h> 41 #include <opencv2/core.hpp> 63 std::list<Keyframe> keyframes;
64 std::list<std::vector<cv::Point>> history;
65 int frame_updated_ind;
73 Keyframer(
int start_frame = 10,
int stability_range = 5);
79 void addFrame(
const sfl::Frame& sfl_frame, Frame& fvs_frame);
86 bool addFace(
const sfl::Face& sfl_face, Face& fvs_face);
91 std::map<int, FaceData> m_face_data_map;
93 int m_stability_range;
99 #endif // FVS_KEYFRAMER_H__ Definition: keyframer.h:55
Definition: keyframer.h:61
void addFrame(const sfl::Frame &sfl_frame, Frame &fvs_frame)
Add a new frame.
Definition: keyframer.cpp:44
Keyframer(int start_frame=10, int stability_range=5)
Constructor.
Definition: keyframer.cpp:37
cv::Point3f euler_angles
Face orientation in euler angles.
Definition: keyframer.h:58
Definition: face_regions.cpp:43
int id
Frame sequence id.
Definition: keyframer.h:57
Divides a sequence of frames containing faces into keyframes.
Definition: keyframer.h:51