From 1de966efc704dd5d18e3fd63325a1f82948a3d82 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 19 四月 2017 15:30:50 +0800
Subject: [PATCH]
---
RtspFace/PL_SensetimeFaceTrack.h | 40 +++++++++++++++++++++++++++++++++++++---
1 files changed, 37 insertions(+), 3 deletions(-)
diff --git a/RtspFace/PL_SensetimeFaceTrack.h b/RtspFace/PL_SensetimeFaceTrack.h
index 8ce9f5c..c3bf593 100644
--- a/RtspFace/PL_SensetimeFaceTrack.h
+++ b/RtspFace/PL_SensetimeFaceTrack.h
@@ -1,7 +1,41 @@
-#ifndef _PL_PL_SENSETIMEFACETRACK_H_
-#define _PL_PL_SENSETIMEFACETRACK_H_
+#ifndef _PL_SENSETIMEFACETRACK_H_
+#define _PL_SENSETIMEFACETRACK_H_
#include "PipeLine.h"
+#include <vector>
+
+struct FacePoint
+{
+ int x;
+ int y;
+
+ FacePoint() : x(0), y(0) { }
+};
+
+struct FaceRect
+{
+ FacePoint leftTop;
+ FacePoint rightBottom;
+
+ FaceRect() : leftTop(), rightBottom() { }
+};
+
+struct SensetimeFaceFeature
+{
+ FaceRect rect;
+ int id;
+ float yaw;
+ float pitch;
+ float roll;
+ float eyeDistance;
+ std::vector<FacePoint> featurePoints;
+
+ SensetimeFaceFeature() :
+ rect(), id(0), yaw(0.0), pitch(0.0), roll(0.0), eyeDistance(0.0), featurePoints()
+ {}
+};
+
+typedef std::vector<SensetimeFaceFeature> st_ff_vect_t;
struct SensetimeFaceTrackConfig
{
@@ -34,6 +68,6 @@
void* internal;
};
-PipeLineElem* create_PL_SensetimeFaceDetect();
+PipeLineElem* create_PL_SensetimeFaceTrack();
#endif
--
Gitblit v1.8.0