X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=include%2FDetector.h;h=0d4c6b10f3053fcd2b408dcb27123e2a2fbd1d5f;hb=97b147e9106cb549dd7dd62829b9d29b326738c7;hp=cb52902ac80d7d17a9b042e278c3413f55269a66;hpb=8b450dd21387f7775cfc68dee771bda82c0f8ed6;p=trackerpp.git diff --git a/include/Detector.h b/include/Detector.h index cb52902..0d4c6b1 100644 --- a/include/Detector.h +++ b/include/Detector.h @@ -15,7 +15,7 @@ namespace suanzi { Detector(); virtual ~Detector(); // TODO - unsigned int detect(const cv::Mat& frame, Detection* detections){return 0;} + unsigned int detect(const cv::Mat& frame, Detection* detections){return 2;} }; struct Detection @@ -25,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;