From 6ce5b5b5c3a258992cdcc31677230da22203a089 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期六, 11 一月 2020 18:09:25 +0800
Subject: [PATCH] debug
---
csrc/face.cpp | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/csrc/face.cpp b/csrc/face.cpp
index 2153518..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, ¶m);
@@ -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,11 +217,9 @@
tmpParam.nSampleSize = param.nSampleSize;
tmpParam.nDetectionIntervalFrame = param.nDetectionIntervalFrame;
- printf("chan %d size: %dx%d", chan, w, h);
+ printf("##########resize track\n");
- auto flag = THFT_Reset(chan, &tmpParam);
-
- return flag;
+ return THFT_Reset(chan, &tmpParam);
}
} // namespace cppface
--
Gitblit v1.8.0