29 #ifndef FACE_VIDEO_SEGMENT_VIDEO_LANDMARKS_UNIT_H__ 30 #define FACE_VIDEO_SEGMENT_VIDEO_LANDMARKS_UNIT_H__ 32 #include "base/base.h" 33 #include "video_framework/video_unit.h" 34 #include <sfl/sequence_face_landmarks.h> 35 #include <sfl/utilities.h> 36 #include <opencv2/core.hpp> 41 std::string stream_name =
"LandmarksStream";
42 std::string video_stream_name =
"VideoStream";
43 std::string landmarks_path =
"";
44 float frame_scale = 1.0f;
45 sfl::FaceTrackingType tracking = sfl::TRACKING_BRISK;
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::shared_ptr<sfl::SequenceFaceLandmarks> sfl_;
65 std::list<std::unique_ptr<sfl::Frame>>::const_iterator sequence_it;
67 int video_stream_idx_;
75 std::string video_stream_name =
"VideoStream";
76 std::string landmarks_stream_name =
"LandmarksStream";
90 virtual bool OpenStreams(video_framework::StreamSet*
set);
91 virtual void ProcessFrame(video_framework::FrameSetPtr input, std::list<video_framework::FrameSetPtr>* output);
92 virtual bool PostProcess(std::list<video_framework::FrameSetPtr>* append);
96 int video_stream_idx_;
97 int landmarks_stream_idx_;
107 #endif // FACE_VIDEO_SEGMENT_VIDEO_LANDMARKS_UNIT_H__ Definition: landmarks_unit.cpp:49
Calculates face landmarks in video frames from stream.
Definition: landmarks_unit.h:50
Renders face landmarks from stream.
Definition: landmarks_unit.h:81
Definition: landmarks_unit.h:40
Definition: landmarks_unit.h:73