DFace SDK  2.0.0
LTM
dface_infrared.h
1 /*****************************************************************************
2 * DFace pro SDK library
3 * Copyright (C) 2018 杭州小孔成像科技有限公司(dface.tech).
4 * @file dface_infrared.h
5 * @brief DFace红外摄像头活体检测API抽象类
6 *
7 *
8 * @author Pinhole(dface.tech)
9 * @email customer@dface.tech
10 * @version 1.8.0
11 * @date 2018-05-02
12 * @license no free
13 *
14 *----------------------------------------------------------------------------
15 * Remark : Description
16 *----------------------------------------------------------------------------
17 * Change History :
18 * <Date> | <Version> | <Author> | <Description>
19 *----------------------------------------------------------------------------
20 * 2018/05/02 | 1.8.0 | Pinhole |
21 *----------------------------------------------------------------------------
22 *
23 *****************************************************************************/
24 
25 #ifndef DFACE_IR_LV_H
26 #define DFACE_IR_LV_H
27 
28 #include <string>
29 #include "dface/common.h"
30 #include "dface/mat.h"
31 
32 namespace dface {
33  using namespace std;
34 
39  class DFACE_EXPORTS DfaceInfrared {
40  public:
41  DfaceInfrared(){};
42  virtual ~DfaceInfrared() { return; };
43 
48  virtual bool init(string &model_path) =0;
49 
56  virtual int liveness_check(dface::Mat &ir_face) const = 0;
57 
65  virtual int liveness_check(dface::Mat &ir_img, dface::Box &unir_bbox) const = 0;
66 
67  virtual void setMinFace(int size) = 0;
68 
69  virtual void setMaxFace(int size) = 0;
70 
71  virtual int identify() const = 0;
72  };
73 
77  typedef DfaceInfrared* CreateInfrared();
78 
83  typedef void DestroyInfrared(DfaceInfrared* dc);
84 }
85 
86 
87 #endif //DFACE_IR_L_H
Definition: allocator.h:14
边框信息(人脸,行人,物体等)
Definition: types.h:16
dface内置的图像数据 dface的所有接口只支持dface::Mat(RGB格式)
Definition: mat.h:23
DFace红外线活体检测API抽象层(DfaceInfrared)
Definition: dface_infrared.h:39