DFace C++ SDK  2.5.2
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 #include <string>
33 
34 namespace dface{
35 
42  public:
44 
45  virtual ~DfaceTrack() { return; };
46 
47  virtual int identify() const = 0;
48 
49 
57  virtual void setTrackMode(char trackMode) = 0;
58 
64  virtual void setMaxAge(int count) = 0;
65 
71  virtual void setMaxCosineDistance(float distance) = 0;
72 
78  virtual void setMaxIouDistance(float distance) = 0;
79 
85  virtual void setMinHits(int count) = 0;
86 
92  virtual void setMaxTrackNum(int count) = 0;
93 
104  virtual bool update(const dface::Mat &img, std::vector<dface::Box> &in_boxs, std::vector<dface::Box> &out_boxs) = 0;
105 
110  virtual bool start() = 0;
111 
116  virtual bool stop() = 0;
117 
122  virtual bool restart() = 0;
123  };
124 
125 
129  typedef DfaceTrack* CreateTrack(std::string &model_path, int frame_width, int frame_height, int max_age, int min_hit);
130 
135  typedef void DestroyTrack(DfaceTrack* rc);
136 
137 }
138 
139 #endif //DFACE_DFACETRACK_H
Definition: allocator.h:14
void DestroyTrack(DfaceTrack *rc)
Definition: dface_track.h:135
virtual ~DfaceTrack()
Definition: dface_track.h:45
#define DFACE_EXPORTS
Definition: def.h:15
DFaceDB人脸(物体)跟踪器(DfaceTrack) 基于深度学习的人脸(物体)跟踪器,能够跟踪任意物体 ...
Definition: dface_track.h:41
dface内置的图像数据 dface的所有接口只支持dface::Mat(RGB格式)
Definition: mat.h:23
DfaceTrack * CreateTrack(std::string &model_path, int frame_width, int frame_height, int max_age, int min_hit)
Definition: dface_track.h:129
DfaceTrack()
Definition: dface_track.h:43