From 0b1de1fddd889cf2ebbe578bfad83862f5ebdf5a Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期一, 09 一月 2017 12:11:05 +0800
Subject: [PATCH] add libevent based daemon

---
 RtspFace/demo/src/test.cpp |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/RtspFace/demo/src/test.cpp b/RtspFace/demo/src/test.cpp
index f626a03..e71513b 100644
--- a/RtspFace/demo/src/test.cpp
+++ b/RtspFace/demo/src/test.cpp
@@ -2,7 +2,7 @@
 #include <vector>
 #include <stdio.h>
 
-#include "faceAPI.h"
+#include "tools.h"
 
 using namespace std;
 
@@ -13,6 +13,10 @@
 	char *db_path = "./out.db";
 	char *image_path = argv[1];
 	char *image_list = "../test_image/imglist";
+	
+	
+	person p={0,"axsdcc",1};
+	
 	cv::Mat bgr_image = cv::imread(image_path);
 	if(bgr_image.data != NULL) {
 		cout<<image_path<<endl;
@@ -20,10 +24,18 @@
 		cout<<"image is null"<<endl;
 		cout<<image_path<<endl;
 	}
+	
 	int idx = -11;
-	faceAPI face;
-	idx = face.do_reasch(bgr_image);
-	cout<<"idx="<<idx<<endl;
-
+	tools tool=tools();
+	tool.init();
+	cout<<"======tools init ==========="<<endl;
+	//idx=tool.reg(bgr_image,&p);
+	tool.search(bgr_image,&p);
+	cout<<"============================================"<<endl;
+	cout<<"p_id="<<p.p_id<<endl;
+	cout<<"name="<<p.name<<endl;
+	cout<<"f_id="<<p.f_id<<endl;
+	
+	
 	return 0;
 }

--
Gitblit v1.8.0