派生自 Algorithm/baseDetector

Scheaven
2021-07-28 eb98b4028b6d6997a458d2ae7ec1635c4d1e4a6c
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
//
// Created by Scheaven on 2020/3/23.
//
 
#ifndef ARI_MANAGER_H
#define ARI_MANAGER_H
#include "std_target.h"
#include "config.h"
#include "detector.h"
#include "../utils/draw_util.h"
 
using namespace std;
using namespace cv;
 
class AriManager{
public:
    std::vector<cv::Rect> boxes;
    int cam_id; //指定待追踪摄像机编号
    Mat frame;
 
private:
    std::shared_ptr<Detector> detector;
    static void init_target(Target *t);
 
public:
    AriManager();
    ~AriManager();
    void single_SDK(const int cam_id, const void *img, TResult& t_result); // 检测+追踪 接口(SDK封装)
};
 
#endif //INC_01_CPP_SORT_TRACKER_MANAGER_H