Fix nan issue in features
[trackerpp.git] / include / Detector.h
index edf875c..0d4c6b1 100644 (file)
@@ -14,7 +14,8 @@ namespace suanzi {
     public:
         Detector();
         virtual ~Detector();
-        unsigned int detect(cv::Mat& frame, Detection* detections){return 1;}
+        // TODO
+        unsigned int detect(const cv::Mat& frame, Detection* detections){return 2;}
     };
 
     struct Detection
@@ -24,10 +25,10 @@ namespace suanzi {
         // 检测目标的分数,可以不填
         float score;
         // 检测目标的坐标,包括物体中心的x、y坐标,物体的高和宽
-        unsigned int center_x;
-        unsigned int center_y;
-        unsigned int height;
-        unsigned int width;
+        unsigned int center_x = 100;
+        unsigned int center_y = 100;
+        unsigned int height = 200;
+        unsigned int width = 200;
         // 检测目标的特征向量
         unsigned int feature_size;
         float * feature;