DFACE C++  5.0.0
dface_nir_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_IR_LV_H
6 #define DFACE_IR_LV_H
7 
8 #include <string>
9 #include "common.h"
10 
11 namespace dface {
12 
18  public:
23 
27  virtual ~DfaceNIRLiveness() { return; };
28 
39  virtual float liveness_check(unsigned char* frame, int w, int h, int format, dface::Box &in_color_bbox) = 0;
40 
41 
49  virtual float liveness_check(dface::Box &in_color_bbox, dface::Box &in_ir_bbox) = 0;
50 
51 
52  };
53 
57  typedef DfaceNIRLiveness* CreateNIRLiveness(const std::string &model_path);
58 
64 }
65 
66 
67 #endif //DFACE_IR_L_H
DfaceNIRLiveness * CreateNIRLiveness(const std::string &model_path)
Definition: dface_nir_liveness.h:57
Definition: common.h:34
void DestroyNIRLiveness(DfaceNIRLiveness *dc)
Definition: dface_nir_liveness.h:63
FaceNIRLiveness API.
Definition: dface_nir_liveness.h:17
Face Box.
Definition: common.h:92
DfaceNIRLiveness()
Definition: dface_nir_liveness.h:22
virtual ~DfaceNIRLiveness()
Definition: dface_nir_liveness.h:27
#define DFACE_EXPORTS
Definition: common.h:19