3#include <opencv2/face.hpp>
21 FacialLandmarkCVProps(
FaceDetectionModelType _type,
const std::string _Face_Detection_Configuration,
const std::string _Face_Detection_Weights,
const std::string _landmarksDetectionModel, cv::Ptr<cv::face::Facemark> _facemark)
26 throw AIPException(AIP_FATAL,
"This constructor only supports SSD");
35 throw AIPException(AIP_FATAL,
"This constructor only supports HAAR_CASCADE ");
44 cv::Ptr<cv::face::Facemark>
facemark = cv::face::FacemarkKazemi::create();
54 template <
class Archive>
55 void serialize(Archive& ar,
const unsigned int version)
57 ar& boost::serialization::base_object<ModuleProps>(*
this);
73 bool process(frame_container &frames);
77 void addInputPin(framemetadata_sp &metadata,
string &pinId);
Definition FacialLandmarksCV.cpp:157
Definition FacialLandmarksCV.cpp:99
Definition FacialLandmarksCV.cpp:17
Definition FacialLandmarksCV.h:11
FacialLandmarkCVProps(FaceDetectionModelType _type, const std::string _faceDetectionModel, const std::string _landmarksDetectionModel, cv::Ptr< cv::face::Facemark > _facemark)
Definition FacialLandmarksCV.h:30
const std::string faceDetectionModel
Definition FacialLandmarksCV.h:43
FaceDetectionModelType
Definition FacialLandmarksCV.h:14
@ SSD
Definition FacialLandmarksCV.h:15
@ HAAR_CASCADE
Definition FacialLandmarksCV.h:16
FacialLandmarkCVProps(FaceDetectionModelType _type, const std::string _Face_Detection_Configuration, const std::string _Face_Detection_Weights, const std::string _landmarksDetectionModel, cv::Ptr< cv::face::Facemark > _facemark)
Definition FacialLandmarksCV.h:21
const std::string Face_Detection_Configuration
Definition FacialLandmarksCV.h:40
FaceDetectionModelType type
Definition FacialLandmarksCV.h:39
void serialize(Archive &ar, const unsigned int version)
Definition FacialLandmarksCV.h:55
size_t getSerializeSize()
Definition FacialLandmarksCV.h:46
cv::Ptr< cv::face::Facemark > facemark
Definition FacialLandmarksCV.h:44
const std::string landmarksDetectionModel
Definition FacialLandmarksCV.h:42
FacialLandmarkCVProps(FaceDetectionModelType _type)
Definition FacialLandmarksCV.h:19
friend class boost::serialization::access
Definition FacialLandmarksCV.h:52
const std::string Face_Detection_Weights
Definition FacialLandmarksCV.h:41
boost::shared_ptr< Detail > mDetail
Definition FacialLandmarksCV.h:80
void setProps(FacialLandmarkCVProps &props)
Definition FacialLandmarksCV.cpp:331
bool process(frame_container &frames)
Definition FacialLandmarksCV.cpp:278
bool validateInputPins()
Definition FacialLandmarksCV.cpp:189
FacialLandmarkCVProps getProps()
Definition FacialLandmarksCV.cpp:336
bool processSOS(frame_sp &frame)
Definition FacialLandmarksCV.cpp:311
bool term()
Definition FacialLandmarksCV.cpp:272
std::string mOutputPinId1
Definition FacialLandmarksCV.h:83
FacialLandmarkCV(FacialLandmarkCVProps props)
Definition FacialLandmarksCV.cpp:185
bool shouldTriggerSOS()
Definition FacialLandmarksCV.cpp:320
FacialLandmarkCVProps mProp
Definition FacialLandmarksCV.h:81
void addInputPin(framemetadata_sp &metadata, string &pinId)
Definition FacialLandmarksCV.cpp:241
bool validateOutputPins()
Definition FacialLandmarksCV.cpp:215
bool handlePropsChange(frame_sp &frame)
Definition FacialLandmarksCV.cpp:342
virtual ~FacialLandmarkCV()
Definition FacialLandmarksCV.cpp:187
bool processEOS(string &pinId)
Definition FacialLandmarksCV.cpp:325
bool init()
Definition FacialLandmarksCV.cpp:248
ModuleProps()
Definition Module.h:40
virtual size_t getSerializeSize()
Definition Module.h:101
Module(Kind nature, string name, ModuleProps _props)
Definition Module.cpp:144