-
Notifications
You must be signed in to change notification settings - Fork 1
/
videomultipletracking.h
executable file
·39 lines (29 loc) · 1.14 KB
/
videomultipletracking.h
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
#ifndef VIDEOMULTIPLETRACKING_H
#define VIDEOMULTIPLETRACKING_H
#include "dataType/myobject.h"
#include "multipletracking/imultipletracker.h"
#include "baseAlgorithm/geometryalgorithm.h"
#include "sampleMarkParam/videomarkparamterconfig.h"
class VideoMultipletracking
{
public:
VideoMultipletracking();
~VideoMultipletracking();
void initTrackingData();
void tracking(const cv::Mat preFrame, const cv::Mat &nextFrame,
const QList<MyObject>& preObjects, const QList<MyObject>& nextObject);
QList<MyObject> getTrackingResult();
private:
TrackingMethod method;
IMultipletracker *multipleTracker;
QList<MyObject> listObjects;
bool hasObjects;
GeometryAlgorithm geometryAlgorithm;
private:
QList<MyObject> updateRectTrackingObjects(const QList<MyObject> &preObjects, const QList<MyObject> &nextObjects);
QList<MyObject> updateRectTrackingObjects(const QList<MyObject> &preObjects);
std::vector<TrackingObject> getTrackingObjects(const QList<MyObject>& objects, ShapeType type);
void leaveObjects(const QList<MyObject> &nextObjects);
void init();
};
#endif // VIDEOMULTIPLETRACKING_H