派生自 libgowrapper/face

zhangmeng
2019-12-16 fcc639d40cab8217c001870ce0ee834c440b3647
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