#include "VPT.h"// detector #include "sort/Sort.h"// tracker #include "sort/SnapShot.h" #define MULTICHANNEL 20 // 支持的最多路数 #define WAITFRAMES 10000 // 最大等待帧数--超过则销毁对应跟踪器 #define THRESHOLD 0.4 #include #include using namespace std; struct TaskTracker { const char * TaskID; double ratioWidth; double ratioHeight; Sort tracker; }; // 220824 byzsh struct objDetector{ void* detector; map 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; };