Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
FacialLandmarkCVProps Class Reference

#include <FacialLandmarksCV.h>

Inheritance diagram for FacialLandmarkCVProps:
Inheritance graph
Collaboration diagram for FacialLandmarkCVProps:
Collaboration graph

Public Types

enum  FaceDetectionModelType { SSD , HAAR_CASCADE }
 
- Public Types inherited from ModuleProps
enum  FrameFetchStrategy { PUSH , PULL }
 

Public Member Functions

 FacialLandmarkCVProps ()
 
 FacialLandmarkCVProps (FaceDetectionModelType _type)
 
 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)
 
 FacialLandmarkCVProps (FaceDetectionModelType _type, const std::string _faceDetectionModel, const std::string _landmarksDetectionModel, cv::Ptr< cv::face::Facemark > _facemark)
 
size_t getSerializeSize ()
 
apra::ScalarPropertyValue getProperty (const std::string &propName) const
 
bool setProperty (const std::string &propName, const apra::ScalarPropertyValue &value)
 
- Public Member Functions inherited from ModuleProps
 ModuleProps ()
 
 ModuleProps (float _fps)
 
 ModuleProps (float _fps, size_t _qlen, bool _logHealth)
 
 ModuleProps (FrameFetchStrategy _frameFetchStrategy)
 
size_t getQLen ()
 

Static Public Member Functions

template<typename PropsT >
static void applyProperties (PropsT &props, const std::map< std::string, apra::ScalarPropertyValue > &values, std::vector< std::string > &missingRequired)
 
static std::vector< std::string > dynamicPropertyNames ()
 

Public Attributes

FaceDetectionModelType type
 
std::string Face_Detection_Configuration = "./data/assets/deploy.prototxt"
 
std::string Face_Detection_Weights = "./data/assets/res10_300x300_ssd_iter_140000_fp16.caffemodel"
 
std::string landmarksDetectionModel = "./data/assets/face_landmark_model.dat"
 
std::string faceDetectionModel = "./data/assets/haarcascade.xml"
 
cv::Ptr< cv::face::Facemark > facemark = cv::face::FacemarkKazemi::create()
 
- Public Attributes inherited from ModuleProps
float fps
 
size_t qlen
 
bool logHealth
 
int logHealthFrequency
 
size_t maxConcurrentFrames
 
int skipN = 0
 
int skipD = 1
 
FrameFetchStrategy frameFetchStrategy
 
QuePushStrategy::QuePushStrategyType quePushStrategyType
 
FIndexStrategy::FIndexStrategyType fIndexStrategyType
 
bool enableHealthCallBack
 
int healthUpdateIntervalInSec
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 

Member Enumeration Documentation

◆ FaceDetectionModelType

Enumerator
SSD 
HAAR_CASCADE 

Constructor & Destructor Documentation

◆ FacialLandmarkCVProps() [1/4]

FacialLandmarkCVProps::FacialLandmarkCVProps ( )
inline

◆ FacialLandmarkCVProps() [2/4]

FacialLandmarkCVProps::FacialLandmarkCVProps ( FaceDetectionModelType _type)
inline

◆ FacialLandmarkCVProps() [3/4]

FacialLandmarkCVProps::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 )
inline

◆ FacialLandmarkCVProps() [4/4]

FacialLandmarkCVProps::FacialLandmarkCVProps ( FaceDetectionModelType _type,
const std::string _faceDetectionModel,
const std::string _landmarksDetectionModel,
cv::Ptr< cv::face::Facemark > _facemark )
inline

Member Function Documentation

◆ applyProperties()

template<typename PropsT >
static void FacialLandmarkCVProps::applyProperties ( PropsT & props,
const std::map< std::string, apra::ScalarPropertyValue > & values,
std::vector< std::string > & missingRequired )
inlinestatic
Here is the call graph for this function:

◆ dynamicPropertyNames()

static std::vector< std::string > FacialLandmarkCVProps::dynamicPropertyNames ( )
inlinestatic

◆ getProperty()

apra::ScalarPropertyValue FacialLandmarkCVProps::getProperty ( const std::string & propName) const
inline

◆ getSerializeSize()

size_t FacialLandmarkCVProps::getSerializeSize ( )
inlinevirtual

Reimplemented from ModuleProps.

Here is the call graph for this function:

◆ serialize()

template<class Archive >
void FacialLandmarkCVProps::serialize ( Archive & ar,
const unsigned int version )
inlineprivate

◆ setProperty()

bool FacialLandmarkCVProps::setProperty ( const std::string & propName,
const apra::ScalarPropertyValue & value )
inline

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Member Data Documentation

◆ Face_Detection_Configuration

std::string FacialLandmarkCVProps::Face_Detection_Configuration = "./data/assets/deploy.prototxt"

◆ Face_Detection_Weights

std::string FacialLandmarkCVProps::Face_Detection_Weights = "./data/assets/res10_300x300_ssd_iter_140000_fp16.caffemodel"

◆ faceDetectionModel

std::string FacialLandmarkCVProps::faceDetectionModel = "./data/assets/haarcascade.xml"

◆ facemark

cv::Ptr<cv::face::Facemark> FacialLandmarkCVProps::facemark = cv::face::FacemarkKazemi::create()

◆ landmarksDetectionModel

std::string FacialLandmarkCVProps::landmarksDetectionModel = "./data/assets/face_landmark_model.dat"

◆ type

FaceDetectionModelType FacialLandmarkCVProps::type

The documentation for this class was generated from the following file: