29 #ifndef FVS_KEYFRAME_UNIT_H__ 30 #define FVS_KEYFRAME_UNIT_H__ 32 #include "base/base.h" 33 #include "video_framework/video_unit.h" 34 #include "keyframer.h" 36 #include <opencv2/core.hpp> 42 std::string video_stream_name =
"VideoStream";
43 std::string segment_stream_name =
"SegmentationStream";
44 std::string landmarks_stream_name =
"LandmarksStream";
45 std::string face_regions_stream_name =
"FaceRegionsStream";
47 int stability_range = 5;
62 virtual bool OpenStreams(video_framework::StreamSet*
set);
63 virtual void ProcessFrame(video_framework::FrameSetPtr input, std::list<video_framework::FrameSetPtr>* output);
64 virtual bool PostProcess(std::list<video_framework::FrameSetPtr>* append);
68 std::string output_dir_;
69 std::string src_name_;
71 int video_stream_idx_;
72 int landmarks_stream_idx_;
73 int face_regions_stream_idx_;
75 int frame_number_ = 0;
76 std::unique_ptr<Keyframer> keyframer_;
81 std::string video_stream_name =
"VideoStream";
82 std::string segment_stream_name =
"SegmentationStream";
83 std::string landmarks_stream_name =
"LandmarksStream";
84 std::string face_regions_stream_name =
"FaceRegionsStream";
85 unsigned int max_scale = 500;
96 const std::string& output_dir,
const std::string& src_name);
102 virtual bool OpenStreams(video_framework::StreamSet*
set);
103 virtual void ProcessFrame(video_framework::FrameSetPtr input, std::list<video_framework::FrameSetPtr>* output);
104 virtual bool PostProcess(std::list<video_framework::FrameSetPtr>* append);
108 std::string output_dir_;
109 std::string src_name_;
111 int video_stream_idx_;
113 int landmarks_stream_idx_;
114 int face_regions_stream_idx_;
115 int frame_number_ = 0;
120 #endif // FACE_VIDEO_SEGMENT_KEYFRAME_WRITER_UNIT_H__ Writes keyframe from stream to file.
Definition: keyframe_unit.h:92
Definition: keyframe_unit.h:40
Definition: keyframe_unit.h:79
Detects key frames from stream.
Definition: keyframe_unit.h:53
Definition: face_regions.cpp:43