#ifndef _PL_PL_SENSETIMEFACEDETECT_H_
|
#define _PL_PL_SENSETIMEFACEDETECT_H_
|
|
#include "PipeLine.h"
|
|
struct SensetimeFaceDetectConfig
|
{
|
int point_size; // 21 / 106
|
int point_size_config; // CV_DETECT_ENABLE_ALIGN_21 / CV_DETECT_ENABLE_ALIGN_106
|
int detect_face_cnt_limit; // -1
|
|
SensetimeFaceDetectConfig() :
|
point_size(21), point_size_config(-1), detect_face_cnt_limit(-1)
|
{ }
|
};
|
|
class PL_SensetimeFaceDetect : public PipeLineElem
|
{
|
public:
|
PL_SensetimeFaceDetect();
|
virtual ~PL_SensetimeFaceDetect();
|
|
virtual bool init(void* args);
|
virtual void finit();
|
|
virtual bool pay(const PipeMaterial& pm);
|
virtual bool gain(PipeMaterial& pm);
|
|
private:
|
void* internal;
|
};
|
|
PipeLineElem* create_PL_SensetimeFaceDetect();
|
|
#endif
|