DFACE C++  5.0.0
dface_detect.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_D_H
6 #define DFACE_D_H
7 
8 #include <string>
9 #include <vector>
10 #include "common.h"
11 
12 namespace dface{
13 
18 
19  public:
24 
28  virtual ~DfaceDetect() { return; };
29 
41  virtual void detection(unsigned char* img, int w, int h, int format, std::vector<dface::Box> &out_bboxs, bool square=true) = 0;
42 
54  virtual void detectionMax(unsigned char* img, int w, int h, int format, std::vector<dface::Box> &out_bboxs, bool square=true) = 0;
55 
56 
62  virtual void SetMinSize(int minSize) = 0;
63 
64  };
65 
66 
71  typedef DfaceDetect* CreateDetect(const std::string &model_path, int precision);
72 
77  typedef void DestroyDetect(DfaceDetect* dc);
78 
79 }
80 
81 
82 
83 #endif //DFACE_D_H
Definition: common.h:34
DfaceDetect()
Definition: dface_detect.h:23
void DestroyDetect(DfaceDetect *dc)
Definition: dface_detect.h:77
virtual ~DfaceDetect()
Definition: dface_detect.h:28
#define DFACE_EXPORTS
Definition: common.h:19
DfaceDetect * CreateDetect(const std::string &model_path, int precision)
Definition: dface_detect.h:71
FaceDetect API.
Definition: dface_detect.h:17