From 91bcfe2c50c8732c1ccf792ca1f8964966808352 Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期二, 10 一月 2017 17:25:40 +0800
Subject: [PATCH] add face daemon

---
 RtspFace/PL_SensetimeFaceDetect.h |   40 ++++++++++++++++++++++++++++++++++++++--
 1 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/RtspFace/PL_SensetimeFaceDetect.h b/RtspFace/PL_SensetimeFaceDetect.h
index 19d48c4..b8c8117 100644
--- a/RtspFace/PL_SensetimeFaceDetect.h
+++ b/RtspFace/PL_SensetimeFaceDetect.h
@@ -1,4 +1,40 @@
-#ifndef _PL_PL_SENSETIMEFACEDETECT_H_
-#define _PL_PL_SENSETIMEFACEDETECT_H_
+#ifndef _PL_SENSETIMEFACEDETECT_H_
+#define _PL_SENSETIMEFACEDETECT_H_
+
+#include "PipeLine.h"
+#include <vector>
+
+struct PL_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
+	bool draw_face_rect;
+	bool draw_face_feature_point;
+	bool generate_face_feature; // for PL_SensetimeFaceFeatureEmit
+	
+	PL_SensetimeFaceDetectConfig() : 
+		point_size(21), point_size_config(-1), detect_face_cnt_limit(-1), 
+		draw_face_rect(true), draw_face_feature_point(true), generate_face_feature(false)
+	{ }
+};
+
+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

--
Gitblit v1.8.0