Add multitracker and metrics
[trackerpp.git] / src / Tracker.h
index 57fe765..c87f465 100644 (file)
@@ -1,15 +1,39 @@
 #ifndef _TRACKER_H_
 #define _TRACKER_H_
 
+#include <opencv2/opencv.hpp>
+#include <string>
+#include <vector>
+#include "Metrics.h"
+
 namespace suanzi {
 
+typedef enum 
+{
+    Fire = -1,
+    Active = 2,
+    Lost,
+    Delete
+} TrackerStatus;
+
 class Tracker
 {
 public:
-    Tracker();
+    Tracker(int id);
     virtual ~Tracker();
+    void updateState(const cv::Mat& image);
+    void addPatch(Patch* p);
+
+private:
+    TrackerStatus status;
+    TrackerStatus preStatus;
+    int id;
+    int age;
+    int last_active;
+    std::vector<Patch *> patches;
 };
 
+
 }
 
 #endif /* _TRACKER_H_ */