diff --git a/modules/video/src/kalman.cpp b/modules/video/src/kalman.cpp index 00211e8cf..b4b4c7435 100644 --- a/modules/video/src/kalman.cpp +++ b/modules/video/src/kalman.cpp @@ -266,6 +266,7 @@ const Mat& KalmanFilter::predict(const Mat& control) // handle the case when there will be measurement before the next predict. statePre.copyTo(statePost); + errorCovPre.copyTo(errorCovPost); return statePre; }