-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
I believe without the updateRect noted below in the Strack predict function, the Kalman filter is basically ignored for matching the object rect from frame to frame. It still works to a point if the objects don't move much (basically predicting the object stays in the same spot), but it falls apart with objects moving a moderate amount from frame to frame.
void byte_track::STrack::predict()
{
if (state_ != STrackState::Tracked)
{
mean_[7] = 0;
}
kalman_filter_.predict(mean_, covariance_);
//need to add this missing call here
updateRect();
}
In the code this project was derived from [ByteTrack-CPP-ncnn], the strack predict function was fixed with commit FoundationVision/ByteTrack@b500c6f
that added:
stracks[i]->static_tlwh();
stracks[i]->static_tlbr();
after the kalman_filter.predict call
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels