DFACE C++  5.0.0
dface_assessment.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_ASSESSMENT_H
6 #define DFACE_ASSESSMENT_H
7 
8 #include <stdio.h>
9 #include <vector>
10 #include <string>
11 #include "common.h"
12 
13 namespace dface {
14 
19 
20  public:
25 
29  virtual ~DfaceAssessment() { return; };
30 
31 
41  virtual float predictQuality(unsigned char* img, int w, int h, int format, dface::Box &in_bbox) = 0;
42 
43  };
44 
45 
50  typedef DfaceAssessment* CreateAssessment(const std::string &model_path);
51 
57 
58 }
59 
60 #endif //DFACE_ASSESSMENT_H
Definition: common.h:34
DfaceAssessment * CreateAssessment(const std::string &model_path)
Definition: dface_assessment.h:50
Face Box.
Definition: common.h:92
DfaceAssessment()
Definition: dface_assessment.h:24
void DestroyAssessment(DfaceAssessment *dc)
Definition: dface_assessment.h:56
virtual ~DfaceAssessment()
Definition: dface_assessment.h:29
FaceAssessment API.
Definition: dface_assessment.h:18
#define DFACE_EXPORTS
Definition: common.h:19