29 #ifndef FACE_VIDEO_SEGMENT_FACE_SEGMENTATION_UNIT_H__ 30 #define FACE_VIDEO_SEGMENT_FACE_SEGMENTATION_UNIT_H__ 32 #include "base/base.h" 33 #include "video_framework/video_unit.h" 34 #include "segment_util/segmentation_util.h" 35 #include "face_regions.h" 42 std::string stream_name =
"FaceRegionsStream";
51 const std::string& fvs_path);
57 virtual bool OpenStreams(video_framework::StreamSet*
set);
58 virtual void ProcessFrame(video_framework::FrameSetPtr input, std::list<video_framework::FrameSetPtr>* output);
59 virtual bool PostProcess(std::list<video_framework::FrameSetPtr>* append);
63 std::unique_ptr<Sequence> fvs_sequence_;
64 int frame_number_ = 0;
68 std::string stream_name =
"FaceRegionsStream";
69 std::string video_stream_name =
"VideoStream";
70 std::string segment_stream_name =
"SegmentationStream";
71 std::string landmarks_stream_name =
"LandmarksStream";
72 std::string video_path =
"";
73 std::string seg_path =
"";
74 std::string landmarks_path =
"";
88 virtual bool OpenStreams(video_framework::StreamSet*
set);
89 virtual void ProcessFrame(video_framework::FrameSetPtr input, std::list<video_framework::FrameSetPtr>* output);
90 virtual bool PostProcess(std::list<video_framework::FrameSetPtr>* append);
94 virtual void save(
const std::string& filePath)
const;
98 int video_stream_idx_;
99 int landmarks_stream_idx_;
104 int frame_number_ = 0;
106 std::unique_ptr<FaceRegions> face_regions_;
107 std::unique_ptr<Sequence> m_fvs_sequence;
112 #endif // FACE_VIDEO_SEGMENT_FACE_SEGMENTATION_UNIT_H__ Reads face regions from file into stream.
Definition: face_segmentation_unit.h:47
Definition: landmarks_unit.cpp:49
Definition: face_segmentation_unit.h:67
Definition: face_segmentation_unit.h:41
Definition: face_regions.cpp:43
Classifies face regions from stream.
Definition: face_segmentation_unit.h:79