From 109ffe9a777658936a38d0c146579a67c60a0d17 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 11 五月 2017 17:48:48 +0800
Subject: [PATCH] 

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

diff --git a/RtspFace/PL_SensetimeFaceDetect.h b/RtspFace/PL_SensetimeFaceDetect.h
index 19d48c4..7a3fd0c 100644
--- a/RtspFace/PL_SensetimeFaceDetect.h
+++ b/RtspFace/PL_SensetimeFaceDetect.h
@@ -1,4 +1,58 @@
-#ifndef _PL_PL_SENSETIMEFACEDETECT_H_
-#define _PL_PL_SENSETIMEFACEDETECT_H_
+#ifndef _PL_SENSETIMEFACEDETECT_H_
+#define _PL_SENSETIMEFACEDETECT_H_
+
+#include "PipeLine.h"
+#include "MaterialBuffer.h"
+//#include "PL_SensetimeFaceTrack.h" // for st_ff_vect_t
+
+struct SensetimeFaceDetectDbFrame : public MB_Frame
+{
+	int school_id;
+	void* _faceDB;
+	
+	SensetimeFaceDetectDbFrame() : MB_Frame(), school_id(-1), _faceDB(nullptr)
+	{ }
+};
+
+struct SensetimeFaceDetectResult
+{
+	int school_id;
+	int st_id;
+	//st_ff_vect_t features;
+	
+	SensetimeFaceDetectResult() : school_id(-1), st_id(-1)
+	{ }
+};
+
+struct PL_SensetimeFaceDetectConfig
+{
+	// #todo currently only support default config
+	bool payWithDbFrame;
+	bool resultStructOnly;
+	
+	//std::string dbPath;
+	
+	PL_SensetimeFaceDetectConfig() : 
+		payWithDbFrame(true), resultStructOnly(true)
+	{ }
+};
+
+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