From c34f11fb7407594f7c1eb69b11f84a45d13cfa1a Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 24 四月 2017 11:55:11 +0800 Subject: [PATCH] --- FaceServer/STFaceCache.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/FaceServer/STFaceCache.cpp b/FaceServer/STFaceCache.cpp index 82f18e3..2c094f9 100644 --- a/FaceServer/STFaceCache.cpp +++ b/FaceServer/STFaceCache.cpp @@ -9,6 +9,8 @@ #include "sample_face_search.h" #include <cv_face.h> +#define ENABLE_AUTO_CREATE_STFACEDB + struct STFaceCacheContext { cv_handle_t handle_verify; @@ -222,6 +224,8 @@ } stface_ctx_map_t::iterator iterCtx = dbContext.find(img.db_id); + +#ifdef ENABLE_AUTO_CREATE_STFACEDB if (iterCtx == dbContext.end()) { // create db @@ -247,6 +251,7 @@ dbContext.insert(std::make_pair(ctx.dbid, ctx)); iterCtx = dbContext.find(img.db_id); } +#endif if (iterCtx == dbContext.end()) { -- Gitblit v1.8.0