pans
2017-01-13 6cd2711a88cdadcc11a4536b9262c55b836decd0
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