From 7bcd2613bb116eff33d6e2358bd8c737bacc3cc1 Mon Sep 17 00:00:00 2001 From: pans <pans@454eff88-639b-444f-9e54-f578c98de674> Date: 星期三, 04 一月 2017 16:33:26 +0800 Subject: [PATCH] --- RtspFace/demo/src/test.cpp | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/RtspFace/demo/src/test.cpp b/RtspFace/demo/src/test.cpp index f626a03..05eab0d 100644 --- a/RtspFace/demo/src/test.cpp +++ b/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; } -- Gitblit v1.8.0