DFace SDK  2.0.0
LTM
dface_track.h
1 
2 /*****************************************************************************
3 * DFace pro SDK library
4 * Copyright (C) 2018 杭州小孔成像科技有限公司(dface.tech).
5 * @file dface_track.h
6 * @brief DFace跟踪器
7 *
8 *
9 * @author Pinhole(dface.tech)
10 * @email customer@dface.tech
11 * @version 2.0.0
12 * @date 2018-11-20
13 * @license no free
14 *
15 *----------------------------------------------------------------------------
16 * Remark : Description
17 *----------------------------------------------------------------------------
18 * Change History :
19 * <Date> | <Version> | <Author> | <Description>
20 *----------------------------------------------------------------------------
21 * 2018/11/20 | 2.0.0 | Pinhole |
22 *----------------------------------------------------------------------------
23 *
24 *****************************************************************************/
25 
26 #ifndef DFACE_DFACETRACK_H
27 #define DFACE_DFACETRACK_H
28 
29 #include "def.h"
30 #include "common.h"
31 #include "types.h"
32 
33 namespace dface{
34 
40  class DFACE_EXPORTS DfaceTrack{
41  public:
42  DfaceTrack(){};
43 
44  virtual ~DfaceTrack() { return; };
45 
46  virtual int identify() const = 0;
47 
58  virtual bool init(string &model_path, int frame_width, int frame_height, int max_age = 200, int min_hit = 3, char trackModel=TRACK_MODE_CONTINUE) = 0;
59 
60 
68  virtual void setTrackMode(char trackMode) = 0;
69 
75  virtual void setMaxAge(int count) = 0;
76 
82  virtual void setMaxCosineDistance(float distance) = 0;
83 
89  virtual void setMaxIouDistance(float distance) = 0;
90 
96  virtual void setMinHits(int count) = 0;
97 
103  virtual void setMaxTrackNum(int count) = 0;
104 
115  virtual bool update(const dface::Mat &img, std::vector<dface::Box> &in_boxs, std::vector<dface::Box> &out_boxs) = 0;
116 
121  virtual bool start() = 0;
122 
127  virtual bool stop() = 0;
128 
133  virtual bool restart() = 0;
134  };
135 
136 
140  typedef DfaceTrack* CreateTrack();
141 
146  typedef void DestroyTrack(DfaceTrack* rc);
147 
148 }
149 
150 #endif //DFACE_DFACETRACK_H
Definition: allocator.h:14
DFace人脸(物体)跟踪器(DfaceTrack) 基于深度学习的人脸(物体)跟踪器,能够跟踪任意物体 ...
Definition: dface_track.h:40
dface内置的图像数据 dface的所有接口只支持dface::Mat(RGB格式)
Definition: mat.h:23