DFace C++ SDK  3.2.0
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:
31 
32  virtual ~DfaceRgbAnti() { return; };
33 
37  virtual int identify() const = 0;
38 
49  virtual float liveness_check(unsigned char* frame, int w, int h, int format, dface::Box &bbox) const = 0;
50 
51 
57  virtual void setFilter1Count(int val) = 0;
58 
63  virtual void setFilter1CrossFrameCount(int count) = 0;
64 
68  virtual void resetFilter1CrossFrame() = 0;
69 
76  virtual void setAntiLevel(int level) = 0;
77 
83  virtual void setFilter2Proportion(float val) = 0;
84 
89  virtual void setMinSize(int size) = 0;
90 
91  };
92 
93 
97  typedef DfaceRgbAnti* CreateRgbAnti(string &model_path);
98 
103  typedef void DestroyRgbAnti(DfaceRgbAnti* rgbc);
104 
105 }
106 
107 
108 
109 #endif //DFACE_RGB_ANTI_H
Definition: allocator.h:14
边框信息(人脸,行人,物体等)
Definition: types.h:17
#define DFACE_EXPORTS
Definition: def.h:15
DfaceRgbAnti * CreateRgbAnti(string &model_path)
Definition: dface_rgb_anti.h:97
virtual ~DfaceRgbAnti()
Definition: dface_rgb_anti.h:32
DfaceRgbAnti()
Definition: dface_rgb_anti.h:30
DFace单目活体认证 最先进的单目活体认证
Definition: dface_rgb_anti.h:25
void DestroyRgbAnti(DfaceRgbAnti *rgbc)
Definition: dface_rgb_anti.h:103