Skip to content

Commit

Permalink
Merge pull request ifzhang#158 from XiaoPeilun/main
Browse files Browse the repository at this point in the history
fix c++ bug: update tlbr after kalman prediction
  • Loading branch information
ifzhang authored Apr 27, 2022
2 parents 7a5507c + b500c6f commit f137cbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/TensorRT/cpp/src/STrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,7 @@ void STrack::multi_predict(vector<STrack*> &stracks, byte_kalman::KalmanFilter &
stracks[i]->mean[7] = 0;
}
kalman_filter.predict(stracks[i]->mean, stracks[i]->covariance);
stracks[i]->static_tlwh();
stracks[i]->static_tlbr();
}
}
2 changes: 2 additions & 0 deletions deploy/ncnn/cpp/src/STrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,7 @@ void STrack::multi_predict(vector<STrack*> &stracks, byte_kalman::KalmanFilter &
stracks[i]->mean[7] = 0;
}
kalman_filter.predict(stracks[i]->mean, stracks[i]->covariance);
stracks[i]->static_tlwh();
stracks[i]->static_tlbr();
}
}

0 comments on commit f137cbf

Please sign in to comment.