| | |
| | | char *image_list = "../test_image/imglist";
|
| | | my_db mydb= {"root","Basic@2017","localhost","demo",3306};
|
| | |
|
| | | person p={0,"axsdcc",1};
|
| | | person p= {0,"axsdcc",1};
|
| | |
|
| | | cv::Mat bgr_image = cv::imread(image_path);
|
| | | if(bgr_image.data != NULL)
|
| | |
| | | tools tool=tools();
|
| | | tool.init(mydb,db_path);
|
| | | cout<<"======tools init ==========="<<endl;
|
| | | //idx=tool.reg(bgr_image,&p);
|
| | | tool.search(bgr_image,&p);
|
| | | if(tool.search(bgr_image,&p))
|
| | | {
|
| | | idx=tool.reg(bgr_image,&p);
|
| | | }
|
| | | |
| | | cout<<"id="<<idx<<endl;
|
| | | cout<<"============================================"<<endl;
|
| | | cout<<"p_id="<<p.p_id<<endl;
|