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/tools.h | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/RtspFace/demo/src/tools.h b/RtspFace/demo/src/tools.h index a4bc5db..d9c65f6 100644 --- a/RtspFace/demo/src/tools.h +++ b/RtspFace/demo/src/tools.h @@ -4,9 +4,6 @@ #include "DBuntil.h" #include "faceAPI.h" -class faceAPI f_api; -class DButil f_db; - class tools { public: @@ -14,11 +11,16 @@ ~tools(); int search(cv::Mat image,person *p); int search(char* s_feature,person *p); - int register(cv::Mat image,person *p); + int reg(cv::Mat image,person *p); + + bool init(); private: int do_register(cv::Mat image,person *p); - person do_search(int idx); - int idx; -} + int do_search(person *p); + person per; + DBuntil dbu; + faceAPI f_api; + +}; #endif \ No newline at end of file -- Gitblit v1.8.0