From 58da7275a659c26b6a1fd9ec07e76f4cf521375e Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 04 一月 2017 18:16:35 +0800
Subject: [PATCH] add dlib face trace

---
 RtspFace/main.cpp |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/RtspFace/main.cpp b/RtspFace/main.cpp
index 412c1ac..738b9b1 100644
--- a/RtspFace/main.cpp
+++ b/RtspFace/main.cpp
@@ -10,6 +10,8 @@
 
 #include "PL_SensetimeFaceTrack.h"
 
+#include "PL_DlibFaceTrack.h"
+
 #include "logger.h"
 
 int main(int argc, char** argv)
@@ -27,6 +29,8 @@
 	pipeLine.register_elem_creator("PL_Scale", create_PL_Scale);
 	
 	pipeLine.register_elem_creator("PL_SensetimeFaceTrack", create_PL_SensetimeFaceTrack);
+	
+	pipeLine.register_elem_creator("PL_DlibFaceTrack", create_PL_DlibFaceTrack);
 	
 	{
 		PL_RTSPClient* rtspClient = (PL_RTSPClient*)pipeLine.push_elem("PL_RTSPClient");
@@ -78,9 +82,17 @@
 		}
 	}
 
+	//{
+	//	SensetimeFaceTrackConfig config;
+	//	PL_SensetimeFaceTrack* pl = (PL_SensetimeFaceTrack*)pipeLine.push_elem("PL_SensetimeFaceTrack");
+	//	pl->init(&config);
+	//}
+	
 	{
-		SensetimeFaceTrackConfig config;
-		PL_SensetimeFaceTrack* pl = (PL_SensetimeFaceTrack*)pipeLine.push_elem("PL_SensetimeFaceTrack");
+		PL_DlibFaceTrack_Config config;
+		config.pyramid_down_layers = 2;
+		config.pyramid_down_n = 1;
+		PL_DlibFaceTrack* pl = (PL_DlibFaceTrack*)pipeLine.push_elem("PL_DlibFaceTrack");
 		pl->init(&config);
 	}
 
@@ -104,7 +116,7 @@
 			exit(EXIT_FAILURE);
 		}
 	}
-	
+
 	{
 		PL_RTSPServer* rtspServer = (PL_RTSPServer*)pipeLine.push_elem("PL_RTSPServer");
 		bool ret = rtspServer->init(nullptr);

--
Gitblit v1.8.0