I need to create Kalman Filter for 3d object tracking in python I don’t understand how should I create these matrices and from where take the measurements If there are any examples of KD for 3d object just share with me please
i have seen KD for 2d object tracking But there already were all the matrices given And the only thing I had to do is to write that prediction and update functions
A = np.array([[1, 0, 0, dt, 0, 0],
[0, 1, 0, 0, dt, 0],
[0, 0, 1, 0, 0, dt],
[0, 0, 0, 1, 0, 0],
[0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 1]])
# Noise covariance matrix
Q = q**2 * np.array([[dt**3/3, 0, 0, dt**2/2, 0, 0],
[0, dt**3/3, 0, 0, dt**2/2, 0],
[0, 0, dt**3/3, 0, 0, dt**2/2],
[dt**2/2, 0, 0, dt, 0, 0],
[0, dt**2/2, 0, 0, dt, 0],
[0, 0, dt**2/2, 0, 0, dt]])
# Measurement matrix
H = np.array([[1., 0, 0, 0, 0, 0],
[0., 1, 0, 0, 0, 0],
[0., 0, 1, 0, 0, 0]])
# Measurement noise covariance matrix
R = 5 * np.eye(3)
that's how my matrices look now but I think the matrix Q is not correct I don't understand how should I create it