DFace C++ SDK  2.5.2
dface_rgb_anti.h
浏览该文件的文档.
1 //
2 // Created by asy on 12/4/18.
3 //
4 
5 #ifndef DFACE_RGB_ANTI_H
6 #define DFACE_RGB_ANTI_H
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string>
11 #include "dface/types.h"
12 #include "def.h"
13 #include "types.h"
14 #include "dface/mat.h"
15 #include "dface/common.h"
16 
17 namespace dface{
18  using namespace std;
19 
26  public:
32 
33  virtual ~DfaceRgbAnti() { return; };
34 
35  virtual int identify() const = 0;
36 
46  virtual int liveness_check(dface::Mat &img, dface::Box &bbox, char mode = RGBANTI_MODE_LIGHT) const = 0;
47 
48 
54  virtual void setPatCount(int val) = 0;
55 
61  virtual void setPatThreadshold(float val) = 0;
62 
68  virtual void setDeepThreadshold(float val) = 0;
69 
70  };
71 
72 
76  typedef DfaceRgbAnti* CreateRgbAnti(string &model_path);
77 
82  typedef void DestroyRgbAnti(DfaceRgbAnti* rgbc);
83 
84 }
85 
86 
87 
88 #endif //DFACE_RGB_ANTI_H
Definition: allocator.h:14
Definition: common.h:84
边框信息(人脸,行人,物体等)
Definition: types.h:16
#define DFACE_EXPORTS
Definition: def.h:15
DfaceRgbAnti * CreateRgbAnti(string &model_path)
Definition: dface_rgb_anti.h:76
dface内置的图像数据 dface的所有接口只支持dface::Mat(RGB格式)
Definition: mat.h:23
virtual ~DfaceRgbAnti()
Definition: dface_rgb_anti.h:33
DfaceRgbAnti()
Definition: dface_rgb_anti.h:31
DFace单目活体认证 最先进的单目活体认证
Definition: dface_rgb_anti.h:25
void DestroyRgbAnti(DfaceRgbAnti *rgbc)
Definition: dface_rgb_anti.h:82