ObjCls.h
893 Bytes
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
#include "VPT.h"// detector
#include "sort/Sort.h"// tracker
#include "sort/SnapShot.h"
#define MULTICHANNEL 20 // 支持的最多路数
#define WAITFRAMES 10000 // 最大等待帧数--超过则销毁对应跟踪器
#define THRESHOLD 0.4
#include <boost/thread.hpp>
#include <string>
using namespace std;
struct TaskTracker
{
const char * TaskID;
double ratioWidth;
double ratioHeight;
Sort tracker;
}; // 220824 byzsh
struct objDetector{
void* detector;
map<const char *, TaskTracker> taskTrackers; // 220824 byzsh
// Sort* tracker;
SnapShot* snapshotHelper;
VPT_PARAM param;
int channels;//值为opencv的CV_8UC1 或者 CV_8UC3
int frameCounter;
long long int frameCounter_; //220826 byzsh 内部记录帧号,记录处理了多少次
bool isInitFrame;
int licence_status = -1;
int thrd_status = -1;
boost::thread thrd;
};