DFace SDK  2.0.0
LTM
dface_pose.h
1 
2 /*****************************************************************************
3 * DFace pro SDK library
4 * Copyright (C) 2018 杭州小孔成像科技有限公司(dface.tech).
5 * @file dface_pose.h
6 * @brief DFace人脸采集API抽象类
7 *
8 *
9 * @author Pinhole(dface.tech)
10 * @email customer@dface.tech
11 * @version 2.0.0
12 * @date 2018-05-02
13 * @license no free
14 *
15 *----------------------------------------------------------------------------
16 * Remark : Description
17 *----------------------------------------------------------------------------
18 * Change History :
19 * <Date> | <Version> | <Author> | <Description>
20 *----------------------------------------------------------------------------
21 * 2018/05/02 | 2.0.0 | Pinhole |
22 *----------------------------------------------------------------------------
23 *
24 *****************************************************************************/
25 
26 #ifndef DFACE_G_H
27 #define DFACE_G_H
28 
29 #include <string>
30 #include <dface/common.h>
31 #include <dface/mat.h>
32 
33 namespace dface {
34  using namespace std;
35 
40  class DFACE_EXPORTS DfacePose {
41 
42  public:
43  DfacePose() {};
44 
45  virtual ~DfacePose() { return; };
46 
47  virtual int identify() const = 0;
48 
53  virtual bool init(string &model_path) = 0;
54 
55 
72  virtual void predictPose(const dface::Mat &img, const std::vector<dface::Box> &in_bboxs, std::vector<std::vector<dface::Point> > &out_landmarks, std::vector<std::vector<double> > &out_head_pose) = 0;
73 
82  virtual void predictBlur(const dface::Mat &img, const std::vector<dface::Box> &in_bboxs, std::vector<double> &out_blur) = 0;
83 
92  virtual void predictLight(const dface::Mat &img, const std::vector<dface::Box> &in_bboxs, std::vector<int> &out_light) = 0;
93 
94 
103  virtual void predictAge(const dface::Mat &img, const std::vector<dface::Box> &in_bboxs, std::vector<int> &ages) = 0;
104 
113  virtual void predictSex(const dface::Mat &img, const std::vector<dface::Box> &in_bboxs, std::vector<int> &sexs) = 0;
114 
125  virtual void setCameraParameter(float focalLength, float opticalCenterX, float opticalCenterY) = 0;
126 
131  virtual void setMaxFace(int max_size) = 0;
132 
137  virtual void setMinFace(int min_size) = 0;
138 
139  };
140 
141 
146  typedef DfacePose* CreatePose();
147 
152  typedef void DestroyPose(DfacePose* dc);
153 
154 }
155 
156 #endif //DFACE_G_H
157 
Definition: allocator.h:14
dface内置的图像数据 dface的所有接口只支持dface::Mat(RGB格式)
Definition: mat.h:23
DFace人脸姿态API抽象层(DFacePose)
Definition: dface_pose.h:40