DFACE C++  5.0.0
dface_pose.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_POSE_H
6 #define DFACE_POSE_H
7 
8 #include <stdio.h>
9 #include <vector>
10 #include <string>
11 #include "common.h"
12 
13 namespace dface {
14 
19 
20  public:
24  DfacePose() {};
25 
29  virtual ~DfacePose() { return; };
30 
43  virtual void predictPose(unsigned char* frame, int w, int h, int format, dface::Box &in_bbox, std::vector<dface::Point> &out_landmark, std::vector<double> &out_head_pose) = 0;
44 
45 
56  virtual void setCameraParameter(float focalLength, float opticalCenterX, float opticalCenterY) = 0;
57 
58  };
59 
60 
65  typedef DfacePose* CreatePose(const std::string &model_path);
66 
71  typedef void DestroyPose(DfacePose* dc);
72 
73 }
74 
75 #endif //DFACE_POSE_H
Definition: common.h:34
DfacePose()
Definition: dface_pose.h:24
DfacePose * CreatePose(const std::string &model_path)
Definition: dface_pose.h:65
Face Box.
Definition: common.h:92
void DestroyPose(DfacePose *dc)
Definition: dface_pose.h:71
virtual ~DfacePose()
Definition: dface_pose.h:29
#define DFACE_EXPORTS
Definition: common.h:19
FacePose API.
Definition: dface_pose.h:18