DFace SDK  1.8.5
dface_infrared.h
1 /*****************************************************************************
2 * DFace pro SDK library
3 * Copyright (C) 2018 杭州小孔成像科技有限公司(dface.tech).
4 * @file dface_ir.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; };
49  virtual int liveness_check(dface::Mat &ir_img) const = 0;
50 
51  virtual void setMinFace(int size) = 0;
52 
53  virtual void setMaxFace(int size) = 0;
54 
55  virtual int identify() const = 0;
56  };
57 
62  typedef DfaceInfrared* CreateInfrared(string model_path);
63 
68  typedef void DestroyInfrared(DfaceInfrared* dc);
69 }
70 
71 
72 #endif //DFACE_IR_L_H
Definition: common.h:37
Mat dface内置的图像数据 dface的所有接口只支持dface::Mat(RGB格式)
Definition: mat.h:23
DFace红外线活体检测API抽象层(DfaceInfrared)
Definition: dface_infrared.h:39