DFace SDK  1.8.5
dface_pose.h
1 
2 /*****************************************************************************
3 * DFace pro SDK library
4 * Copyright (C) 2018 杭州小孔成像科技有限公司(dface.tech).
5 * @file dface_g.h
6 * @brief DFace人脸采集API抽象类
7 *
8 *
9 * @author Pinhole(dface.tech)
10 * @email customer@dface.tech
11 * @version 1.8.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 | 1.8.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 
65  virtual void predictPose(const dface::Mat &img, const std::vector<dface::Bbox> &in_bboxs, std::vector<std::vector<dface::Point> > &out_landmarks, std::vector<std::vector<double>> &out_head_pose) = 0;
66 
75  virtual void predictBlur(const dface::Mat &img, const std::vector<dface::Bbox> &in_bboxs, std::vector<double> &out_blur) = 0;
76 
85  virtual void predictLight(const dface::Mat &img, const std::vector<dface::Bbox> &in_bboxs, std::vector<int> &out_light) = 0;
86 
87 
96  virtual void predictAge(const dface::Mat &img, const std::vector<dface::Bbox> &in_bboxs, std::vector<int> &ages) = 0;
97 
106  virtual void predictSex(const dface::Mat &img, const std::vector<dface::Bbox> &in_bboxs, std::vector<int> &sexs) = 0;
107 
118  virtual void setCameraParameter(float focalLength, float opticalCenterX, float opticalCenterY) = 0;
119 
124  virtual void setMaxFace(int max_size) = 0;
125 
130  virtual void setMinFace(int min_size) = 0;
131 
132  };
133 
134 
139  typedef DfacePose* CreatePose(string model_path);
140 
145  typedef void DestroyPose(DfacePose* dc);
146 
147 }
148 
149 #endif //DFACE_G_H
Definition: common.h:37
Mat dface内置的图像数据 dface的所有接口只支持dface::Mat(RGB格式)
Definition: mat.h:23
DFace人脸姿态API抽象层(DFacePose)
Definition: dface_pose.h:40