From adf92d2372249aa4a5353ca3e1d277346352ca32 Mon Sep 17 00:00:00 2001 From: pans <pans@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 29 十二月 2016 14:55:41 +0800 Subject: [PATCH] --- RtspFace/demo/src/test.cpp | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/RtspFace/demo/src/test.cpp b/RtspFace/demo/src/test.cpp index 1105d77..acc5771 100644 --- a/RtspFace/demo/src/test.cpp +++ b/RtspFace/demo/src/test.cpp @@ -10,9 +10,15 @@ //文件路径 char *db_path = "./out.db"; - char *image_path = argv[0]; - char *image_list = "../../test_image/imglist"; + char *image_path = argv[1]; + char *image_list = "../test_image/imglist"; 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; faceAPI face; idx = face.do_reasch(bgr_image); -- Gitblit v1.8.0