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
30
31
32
33
34
35
| #include <iostream>
| #include <vector>
| #include <stdio.h>
|
| #include "tools.h"
|
| using namespace std;
|
| int main(int argc, char *argv[] )
| {
|
| //Îļþ·¾¶
| char *db_path = "./out.db";
| char *image_path = argv[1];
| char *image_list = "../test_image/imglist";
|
|
| person p={0,"axsdcc"};
|
| cv::Mat bgr_image = cv::imread(image_path);
| if(bgr_image.data != NULL) {
| cout<<image_path<<endl;
| } else {
| cout<<"image is null"<<endl;
| cout<<image_path<<endl;
| }
|
| int idx = -11;
| tools tool=tools();
| idx=tool->reg(bgr_image,p);
| cout<<"idx="<<idx<<endl;
|
|
| return 0;
| }
|
|