The code is about following and predicting the track of the mouse by using Kalman Filter. If \'last_prediction=prediction.copy()\' in the 27th line is modified into \'last_predi