From 1668865343c3069a65c241e167618be31a1a0549 Mon Sep 17 00:00:00 2001 From: pans <pans@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 13 一月 2017 14:32:30 +0800 Subject: [PATCH] --- RtspFace/PL_SensetimeFaceDetect.h | 39 +++++++++++++++++++++++++++++++-------- 1 files changed, 31 insertions(+), 8 deletions(-) diff --git a/RtspFace/PL_SensetimeFaceDetect.h b/RtspFace/PL_SensetimeFaceDetect.h index 0d876c0..8454ad7 100644 --- a/RtspFace/PL_SensetimeFaceDetect.h +++ b/RtspFace/PL_SensetimeFaceDetect.h @@ -1,16 +1,39 @@ -#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 SensetimeFaceDetectConfig +struct SensetimeFaceDetectDbFrame : public MB_Frame { - 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 + int school_id; + void* _faceAPI; - SensetimeFaceDetectConfig() : - point_size(21), point_size_config(-1), detect_face_cnt_limit(-1) + SensetimeFaceDetectDbFrame() : MB_Frame(), school_id(-1), _faceAPI(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) { } }; -- Gitblit v1.8.0