forked from Smorodov/Multitarget-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCtracker.h
More file actions
33 lines (27 loc) · 828 Bytes
/
Ctracker.h
File metadata and controls
33 lines (27 loc) · 828 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
#pragma once
#include <vector>
#include <memory>
#include "defines.h"
#include "trajectory.h"
#include "TrackerSettings.h"
///
/// \brief The CTracker class
///
class BaseTracker
{
public:
BaseTracker() = default;
BaseTracker(const BaseTracker&) = delete;
BaseTracker(BaseTracker&&) = delete;
BaseTracker& operator=(const BaseTracker&) = delete;
BaseTracker& operator=(BaseTracker&&) = delete;
virtual ~BaseTracker(void)
{
}
virtual void Update(const regions_t& regions, cv::UMat currFrame, float fps) = 0;
virtual bool CanGrayFrameToTrack() const = 0;
virtual bool CanColorFrameToTrack() const = 0;
virtual size_t GetTracksCount() const = 0;
virtual void GetTracks(std::vector<TrackingObject>& tracks) const = 0;
static std::unique_ptr<BaseTracker> CreateTracker(const TrackerSettings& settings);
};