From 1b1ac234c8b2175dde10982502073c70224414ad Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 29 三月 2017 17:22:24 +0800
Subject: [PATCH]
---
RtspFace/PL_SensetimeFaceDetect.h | 36 +++++++++++++++++++++++++++---------
1 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/RtspFace/PL_SensetimeFaceDetect.h b/RtspFace/PL_SensetimeFaceDetect.h
index b8c8117..7a3fd0c 100644
--- a/RtspFace/PL_SensetimeFaceDetect.h
+++ b/RtspFace/PL_SensetimeFaceDetect.h
@@ -2,20 +2,38 @@
#define _PL_SENSETIMEFACEDETECT_H_
#include "PipeLine.h"
-#include <vector>
+#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
{
- 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
+ // #todo currently only support default config
+ bool payWithDbFrame;
+ bool resultStructOnly;
+
+ //std::string dbPath;
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)
+ payWithDbFrame(true), resultStructOnly(true)
{ }
};
--
Gitblit v1.8.0