From d3b3f6b835cb7fcbb3712f876e84c8ed625170a2 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期三, 15 一月 2020 11:30:08 +0800
Subject: [PATCH] Merge branch 'cuda-8.0' of ssh://192.168.5.5:29418/libgowrapper/face into cuda-8.0

---
 csrc/face.h |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/csrc/face.h b/csrc/face.h
new file mode 100644
index 0000000..d0b5233
--- /dev/null
+++ b/csrc/face.h
@@ -0,0 +1,51 @@
+#ifndef _cpp_face_hpp_
+#define _cpp_face_hpp_
+
+#include <vector>
+#include <functional>
+
+using VecFunc = std::vector<std::function<void()> >;
+
+#include "struct.h"
+
+namespace cppface
+{
+    class sdkface{
+    public: 
+        sdkface();
+        ~sdkface();
+
+    public: 
+        int detector(const int min_faces, const int roll_angles, 
+                    const int threads_max, const int gpu);
+        int extractor(const int threads_max, const int gpu);
+        int propertizer(const int threads_max);
+
+        int tracker(const int width, const int height,
+                    const int max_faces, const int interval, const int sample_size,
+                    const int threads_max, const int gpu);
+
+    public:
+        int detect(const cIMAGE *img, const int chan, void **fpos, int *fcnt);
+        int extract(const cFacePos &pos, const cIMAGE *img, const int chan, void **feat, int *featLen);
+        float compare(unsigned char *feat1, unsigned char *feat2);
+
+        int propertize(const cFacePos &pos, const cIMAGE *img, const int chan, void **res);
+
+        int track(const cIMAGE *img, const int chan, void **fInfo, int *fcnt);
+        int track_resize(const int w, const int h, const int chan);
+    private: 
+        VecFunc dtors_;
+
+        cFacePos *fpos_;
+
+        int feature_size_;
+        unsigned char *feature_;
+
+        cFaceInfo *finfos_;
+
+    };
+} // namespace cppface
+
+
+#endif
\ No newline at end of file

--
Gitblit v1.8.0