xuxiuxi
2017-03-28 91dba53b778bab96f20b21c15a4f8387d42684b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _TOOLS_H_
#define _TOOLS_H_
 
#include "DBuntil.h"
#include "faceAPI.h"
 
class tools
{
public:
    tools();
    ~tools();
    bool init(my_db mydb,char* db_path);
    int search(cv::Mat image,person *p);
    int search(char* s_feature,person *p);
    int reg(cv::Mat image,person *p);
    
    bool init();
private:
    int do_register(cv::Mat image,person *p);
    int do_search(person *p);
    
    char* db_path;
    person per;
    DBuntil dbu;
    FaceAPI f_api;
    
};
 
#endif