1 #ifndef __SFL_SEQUENCE_FACE_LANDMARKS__ 2 #define __SFL_SEQUENCE_FACE_LANDMARKS__ 10 #include <opencv2/core.hpp> 30 std::list<std::unique_ptr<Face>>
faces;
35 const Face* getFace(
int id)
const;
59 virtual const Frame& addFrame(
const cv::Mat& frame,
int id = -1) = 0;
64 virtual const std::list<std::unique_ptr<Frame>>& getSequence()
const = 0;
69 virtual std::list<std::unique_ptr<Frame>>& getSequenceMutable() = 0;
73 virtual void clear() = 0;
78 virtual std::shared_ptr<SequenceFaceLandmarks> clone() = 0;
82 virtual const std::string& getModel()
const = 0;
86 virtual float getFrameScale()
const = 0;
91 virtual const std::string& getInputPath()
const = 0;
95 virtual FaceTrackingType getTracking()
const = 0;
99 virtual void load(
const std::string& filePath) = 0;
103 virtual void save(
const std::string& filePath)
const = 0;
107 virtual void setFrameScale(
float frame_scale) = 0;
111 virtual void setModel(
const std::string& modelPath) = 0;
116 virtual void setInputPath(
const std::string& inputPath) = 0;
121 virtual void setTracking(FaceTrackingType tracking) = 0;
125 virtual size_t size()
const = 0;
133 static std::shared_ptr<SequenceFaceLandmarks> create(
134 const std::string& landmarks_path,
float frame_scale = 1.0f,
135 FaceTrackingType tracking = TRACKING_NONE);
142 static std::shared_ptr<SequenceFaceLandmarks> create(
143 float frame_scale = 1.0f, FaceTrackingType tracking = TRACKING_NONE);
148 #endif // __SFL_SEQUENCE_FACE_LANDMARKS__ Represents a face detected in a frame.
Definition: sequence_face_landmarks.h:16
int width
Frame width [pixels].
Definition: sequence_face_landmarks.h:28
cv::Rect bbox
Bounding box.
Definition: sequence_face_landmarks.h:19
Interface for sequence face landmarks functionality.
Definition: sequence_face_landmarks.h:51
Represents a frame that might include faces.
Definition: sequence_face_landmarks.h:25
std::list< std::unique_ptr< Face > > faces
Detected faces in the frame.
Definition: sequence_face_landmarks.h:30
std::vector< cv::Point > landmarks
Face landmarks.
Definition: sequence_face_landmarks.h:20
Definition: face_tracker.h:10
int id
Face id.
Definition: sequence_face_landmarks.h:18
int height
Frame height [pixels].
Definition: sequence_face_landmarks.h:29
int id
Frame id.
Definition: sequence_face_landmarks.h:27