派生自 Algorithm/baseDetector

bug
Scheaven
2021-06-17 0126e953b3f293b111179e4777103c64f778870c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Created by Scheaven on 2020/3/23.
//
 
#ifndef INC_01_CPP_SORT_TRACKER_MANAGER_H
#define INC_01_CPP_SORT_TRACKER_MANAGER_H
 
#include "detecter_manager.h"
#include "../config.h"
#include "../utils/result_util.h"
#include "../utils/config_util.h"
#include "../utils/time_util.h"
#include <jsoncpp/json/json.h>
#include "../utils/log_util.h"
 
using namespace std;
using namespace cv;
 
class TrackerManager{
public:
    std::vector<cv::Rect> boxes;
    int cam_id; //指定待追踪摄像机编号
    Mat frame;
 
private:
    struct timeval sys_t1, sys_t2, sys_t3,sys_t33, sys_t4, sys_t5, sys_t6, sys_t7, diff1, diff2,diff3,diff22,diff4,diff5,diff6;
    static void init_target(Target *t);
    static void init_target(TestTarget *t);
 
public:
    TrackerManager();
    ~TrackerManager();
    void release();
    void init_load_model();
    void single_SDK(const int cam_id, const void *img, TResult& t_result); // 检测+追踪 接口(SDK封装)
};
 
#endif //INC_01_CPP_SORT_TRACKER_MANAGER_H