forked from hybridgroup/gocv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtracking.h
38 lines (26 loc) · 759 Bytes
/
tracking.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
#ifndef _OPENCV3_TRACKING_H_
#define _OPENCV3_TRACKING_H_
#include "../core.h"
#ifdef __cplusplus
#include <opencv2/tracking/tracking.hpp>
extern "C" {
#endif
#ifdef __cplusplus
typedef cv::Ptr<cv::Tracker>* Tracker;
typedef cv::Ptr<cv::TrackerKCF>* TrackerKCF;
typedef cv::Ptr<cv::TrackerCSRT>* TrackerCSRT;
#else
typedef void* Tracker;
typedef void* TrackerKCF;
typedef void* TrackerCSRT;
#endif
bool TrackerSubclass_Init(Tracker self, Mat image, Rect boundingBox);
bool TrackerSubclass_Update(Tracker self, Mat image, Rect* boundingBox);
TrackerKCF TrackerKCF_Create();
void TrackerKCF_Close(TrackerKCF self);
TrackerCSRT TrackerCSRT_Create();
void TrackerCSRT_Close(TrackerCSRT self);
#ifdef __cplusplus
}
#endif
#endif //_OPENCV3_TRACKING_H_