DFACE C++  5.0.0
dface_attribute.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_ATTRIBUTE_H
6 #define DFACE_ATTRIBUTE_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 ~DfaceAttribute() { return; };
30 
31 
42  virtual void predictAgeGender(unsigned char* data, int w, int h, int format, dface::Box &in_bbox, int &out_age, int &out_gender) = 0;
43 
44 
54  virtual float predictMask(unsigned char* data, int w, int h, int format, dface::Box &in_bbox) = 0;
55  };
56 
57 
62  typedef DfaceAttribute* CreateAttribute(const std::string &model_path);
63 
68  typedef void DestroyAttribute(DfaceAttribute* dc);
69 
70 }
71 
72 #endif //DFACE_ATTRIBUTE_H
Definition: common.h:34
virtual ~DfaceAttribute()
Definition: dface_attribute.h:29
DfaceAttribute * CreateAttribute(const std::string &model_path)
Definition: dface_attribute.h:62
Face Box.
Definition: common.h:92
FaceAttribute API.
Definition: dface_attribute.h:18
DfaceAttribute()
Definition: dface_attribute.h:24
void DestroyAttribute(DfaceAttribute *dc)
Definition: dface_attribute.h:68
#define DFACE_EXPORTS
Definition: common.h:19