DFACE C++  5.0.0
dface_recognize.h
Go to the documentation of this file.
1 // Hang Zhou Xiao Kong Cheng Xiang Ke Ji You Xian Gong Si is pleased to support DFACE SDK LIBRARY.
2 //
3 // Copyright © 2017-2020, Hang Zhou Xiao Kong Cheng Xiang Ke Ji You Xian Gong Si Holding Limited//
4 
5 #ifndef DFACE_R_H
6 #define DFACE_R_H
7 
8 #include <string>
9 #include "common.h"
10 
11 
12 namespace dface {
13 
18  public:
23 
27  virtual ~DfaceRecognize() { return; };
28 
29 
40  virtual void extractFaceFeatureByImg(unsigned char*img, int w, int h, int format, dface::Box &bbox, std::vector<unsigned char> &out_feature) = 0;
41 
42  };
43 
44 
48  typedef DfaceRecognize* CreateRecognize(const std::string &model_path, int precision);
49 
54  typedef void DestroyRecognize(DfaceRecognize* rc);
55 
56 }
57 
58 
59 
60 #endif //DFACE_R_H
Definition: common.h:34
FaceRecognize API.
Definition: dface_recognize.h:17
virtual ~DfaceRecognize()
Definition: dface_recognize.h:27
DfaceRecognize()
Definition: dface_recognize.h:22
Face Box.
Definition: common.h:92
void DestroyRecognize(DfaceRecognize *rc)
Definition: dface_recognize.h:54
DfaceRecognize * CreateRecognize(const std::string &model_path, int precision)
Definition: dface_recognize.h:48
#define DFACE_EXPORTS
Definition: common.h:19