#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_ */