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/SensetimeFaceAPIWrapper/src/faceAPI.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.h b/RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.h
index c115857..5dd5201 100644
--- a/RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.h
+++ b/RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.h
@@ -5,20 +5,19 @@
#include <cv_face.h>
#include "time_helper.h"
-
+class FaceDB;
class FaceAPI
{
public:
FaceAPI();
~FaceAPI();
+ int do_init(char* db_path);
//查询 前台调用
int do_reasch(char* s_feature);
int do_reasch(cv::Mat image);
//注册 后台另一进程调用
int do_register(cv::Mat image);
-
- bool db_save();
private:
@@ -29,6 +28,7 @@
int get_char(cv_feature_t *p_feature,char* feature_str);
int get_feature(char *feature_str,cv_feature_t *p_feature);
+ FaceDB *fdb;
cv_feature_t* p_f;
};
@@ -36,10 +36,9 @@
class FaceDB
{
public:
-
FaceDB();
virtual ~FaceDB();
-
+
//人脸验证
cv_handle_t handle_verify;
//数据库操作
@@ -51,7 +50,7 @@
bool init(char* db_path);
//保存数据库
bool finally();
-
+
//搜索SDK数据库
int search_db(cv_feature_t* p_feature );
//添加记录
@@ -64,9 +63,10 @@
private:
cv_result_t cv_result;
char* db_path;
-
+
//加载sdk数据库
bool db_load();
+ bool db_save();
};
#endif
--
Gitblit v1.8.0