//
|
// 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
|
|