From fcc639d40cab8217c001870ce0ee834c440b3647 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 16 十二月 2019 15:39:02 +0800
Subject: [PATCH] update

---
 csrc/face.cpp |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/csrc/face.cpp b/csrc/face.cpp
index 21c7369..328111a 100644
--- a/csrc/face.cpp
+++ b/csrc/face.cpp
@@ -175,7 +175,7 @@
         param.nSampleSize = sample_size > 0 ? sample_size : width/2;
         param.nDetectionIntervalFrame = interval;
         
-        printf("start threads: %d gi: %d size: %dx%d maxface: %d, sample: %d, interval: %d\n",
+        printf("##########start threads: %d gi: %d size: %dx%d maxface: %d, sample: %d, interval: %d\n",
             threads_max, gpu, width, height, max_faces, sample_size, interval);
         
         auto nNum = THFT_Create(threads_max, &param);
@@ -185,7 +185,7 @@
             dtors_.emplace_back([]{THFT_Release();});
         }
 
-        printf("end threads: %d gi: %d size: %dx%d maxface: %d, sample: %d, interval: %d\n",
+        printf("##########end threads: %d gi: %d size: %dx%d maxface: %d, sample: %d, interval: %d\n",
             threads_max, gpu, width, height, max_faces, sample_size, interval);        
 
         return nNum;
@@ -208,7 +208,7 @@
         return nNum;
     }
     
-    int sdkface::resize(const int w, const int h, const int chan){
+    int sdkface::track_resize(const int w, const int h, const int chan){
         THFT_Param tmpParam;
         tmpParam.nDeviceID = param.nDeviceID;
         tmpParam.nImageWidth = w;
@@ -217,10 +217,9 @@
         tmpParam.nSampleSize = param.nSampleSize;
         tmpParam.nDetectionIntervalFrame = param.nDetectionIntervalFrame;
 
-        auto flag = THFT_Reset(chan, &tmpParam);
-        printf("sdkface:: resize ret %d, chan %d size: %dx%d\n", flag, chan, w, h);
+        printf("##########resize track\n");
 
-        return flag;
+        return THFT_Reset(chan, &tmpParam);
     }
 
 } // namespace cppface

--
Gitblit v1.8.0