| | |
| | | #include <vector>
|
| | | #include <stdio.h>
|
| | |
|
| | | #include "faceAPI.h"
|
| | | #include "tools.h"
|
| | |
|
| | | using namespace std;
|
| | |
|
| | |
| | | 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;
|
| | |
| | | cout<<"image is null"<<endl;
|
| | | cout<<image_path<<endl;
|
| | | }
|
| | | |
| | | int idx = -11;
|
| | | faceAPI face;
|
| | | idx = face.do_reasch(bgr_image);
|
| | | tools tool=tools();
|
| | | idx=tool->register(bgr_image,p);
|
| | | cout<<"idx="<<idx<<endl;
|
| | |
|
| | | |
| | | |
| | | return 0;
|
| | | }
|