pans
2017-01-04 7bcd2613bb116eff33d6e2358bd8c737bacc3cc1
RtspFace/demo/src/test.cpp
@@ -2,7 +2,7 @@
#include <vector>
#include <stdio.h>
#include "faceAPI.h"
#include "tools.h"
using namespace std;
@@ -13,6 +13,10 @@
   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;
@@ -20,10 +24,12 @@
      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;
}