RtspFace/demo/src/faceAPI.cpp
@@ -196,8 +196,10 @@ } else { fprintf(stderr, "cv_verify_search_face failed, error code %d\n", cv_result); } std::cout<<"this is hits"<<std::endl; if (top_scores[0] != 0) { indx=top_idxs[0]; std::cout<<"indx="<<indx<<std::endl; } if (top_idxs) { delete[]top_idxs; @@ -206,6 +208,7 @@ delete[]top_scores; } cv_verify_release_feature(p_feature); std::cout<<"return indx"<<std::endl; return indx; }