kalman.transitionMatrix = np.array([[1, 0, 1, 0], [0, 1, 0, 1], [0, 0, 1, 0
    ], [0, 0, 0, 1]], np.float32)
kalman.processNoiseCov = np.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0],
    [0, 0, 0, 1]], np.float32) * 0.03
while True:
    kalman.correct(mp)
tp = kalman.predict()
pred.append((int(tp[0]), int(tp[1])))
paint()
cv2.imshow('kalman', frame)
k = cv2.waitKey(30) & 255
if k == 27:
    break
if k == 32:
    reset()
Is there any example of cv2.KalmanFilter implementation?