DFACE C++  5.0.0
dface_track.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 
6 #ifndef DFACE_DFACETRACK_H
7 #define DFACE_DFACETRACK_H
8 
9 #include <string>
10 #include "common.h"
11 
12 namespace dface{
13 
18  public:
23 
27  virtual ~DfaceTrack() { return; };
28 
29 
42  virtual bool update(unsigned char* frame, int w, int h, int format, std::vector<dface::Box> &in_boxs, std::vector<dface::Box> &out_boxs) = 0;
43 
48  virtual bool start() = 0;
49 
54  virtual bool stop() = 0;
55 
60  virtual bool restart() = 0;
61 
62  };
63 
64 
68  typedef DfaceTrack* CreateTrack(const std::string &model_path, int frame_width, int frame_height, int max_age, int min_hit);
69 
74  typedef void DestroyTrack(DfaceTrack* rc);
75 
76 }
77 
78 #endif //DFACE_DFACETRACK_H
DfaceTrack * CreateTrack(const std::string &model_path, int frame_width, int frame_height, int max_age, int min_hit)
Definition: dface_track.h:68
Definition: common.h:34
void DestroyTrack(DfaceTrack *rc)
Definition: dface_track.h:74
virtual ~DfaceTrack()
Definition: dface_track.h:27
FaceTrack API.
Definition: dface_track.h:17
DfaceTrack()
Definition: dface_track.h:22
#define DFACE_EXPORTS
Definition: common.h:19