29 #ifndef FACE_VIDEO_SEGMENT_VIDEO_WRITER_UNIT_2_H__ 30 #define FACE_VIDEO_SEGMENT_VIDEO_WRITER_UNIT_2_H__ 32 #include "base/base.h" 33 #include "video_framework/video_unit.h" 35 #include <opencv2/videoio.hpp> 40 std::string video_stream_name =
"VideoStream";
41 std::string segment_stream_name =
"SegmentationStream";
42 std::string landmarks_model_file =
"";
43 float output_scale = 1.0f;
52 const std::string& video_file);
58 virtual bool OpenStreams(video_framework::StreamSet*
set);
59 virtual void ProcessFrame(video_framework::FrameSetPtr input, std::list<video_framework::FrameSetPtr>* output);
60 virtual bool PostProcess(std::list<video_framework::FrameSetPtr>* append);
64 std::string video_file_;
66 int video_stream_idx_;
68 cv::VideoWriter writer_;
73 #endif // FACE_VIDEO_SEGMENT_VIDEO_WRITER_UNIT_2_H__ Definition: landmarks_unit.cpp:49
Definition: video_writer_unit2.h:39
Writes video frames from stream to file.
Definition: video_writer_unit2.h:48