diff --git a/deploy/cpp/src/tracker.cc b/deploy/cpp/src/tracker.cc index b00e31c4ec580f3b30fe4b10970f31623f47acb3..f40cb0dd699a4687f4f77714e4bc5ae5416141f6 100644 --- a/deploy/cpp/src/tracker.cc +++ b/deploy/cpp/src/tracker.cc @@ -58,8 +58,8 @@ bool JDETracker::update(const cv::Mat &dets, const cv::Mat &emb, std::vector(i, 4); - const cv::Mat <rb_ = dets(cv::Rect(0, i, 4, 1)); + float score = *dets.ptr(i, 1); + const cv::Mat <rb_ = dets(cv::Rect(2, i, 4, 1)); cv::Vec4f ltrb = mat2vec4f(ltrb_); const cv::Mat &embedding = emb(cv::Rect(0, i, emb.cols, 1)); candidates[i] = Trajectory(ltrb, score, embedding); diff --git a/deploy/pptracking/cpp/src/tracker.cc b/deploy/pptracking/cpp/src/tracker.cc index 09b2dfa249ffbc90819d2dd5d3e419a27d23cd43..9540e39f6701750ae8af5229ecd9cfa264460095 100644 --- a/deploy/pptracking/cpp/src/tracker.cc +++ b/deploy/pptracking/cpp/src/tracker.cc @@ -56,8 +56,8 @@ bool JDETracker::update(const cv::Mat &dets, ++timestamp; TrajectoryPool candidates(dets.rows); for (int i = 0; i < dets.rows; ++i) { - float score = *dets.ptr(i, 4); - const cv::Mat <rb_ = dets(cv::Rect(0, i, 4, 1)); + float score = *dets.ptr(i, 1); + const cv::Mat <rb_ = dets(cv::Rect(2, i, 4, 1)); cv::Vec4f ltrb = mat2vec4f(ltrb_); const cv::Mat &embedding = emb(cv::Rect(0, i, emb.cols, 1)); candidates[i] = Trajectory(ltrb, score, embedding);