DFACE C++  5.0.0
dface_rgb_liveness.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_RGB_LIVENESS_H
6 #define DFACE_RGB_LIVENESS_H
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string>
11 #include "common.h"
12 
13 namespace dface{
14 
20  public:
25 
29  virtual ~DfaceRGBLiveness() { return; };
30 
31 
42  virtual float liveness_check(unsigned char* frame, int w, int h, int format, dface::Box &bbox) = 0;
43 
44 
45  };
46 
47 
51  typedef DfaceRGBLiveness* CreateRGBLiveness(const std::string &model_path, int level);
52 
57  typedef void DestroyRGBLiveness(DfaceRGBLiveness* instance);
58 
59 }
60 
61 
62 
63 #endif //DFACE_RGB_LIVENESS_H
Definition: common.h:34
void DestroyRGBLiveness(DfaceRGBLiveness *instance)
Definition: dface_rgb_liveness.h:57
FaceRGBLiveness API.
Definition: dface_rgb_liveness.h:19
DfaceRGBLiveness * CreateRGBLiveness(const std::string &model_path, int level)
Definition: dface_rgb_liveness.h:51
Face Box.
Definition: common.h:92
DfaceRGBLiveness()
Definition: dface_rgb_liveness.h:24
#define DFACE_EXPORTS
Definition: common.h:19
virtual ~DfaceRGBLiveness()
Definition: dface_rgb_liveness.h:29