Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Kalman Filter #302

Open
Mr-Akbari opened this issue Nov 23, 2022 · 0 comments
Open

Edit Kalman Filter #302

Mr-Akbari opened this issue Nov 23, 2022 · 0 comments

Comments

@Mr-Akbari
Copy link

Thanks for sharing your work.
I want to use Kalman filter with this input : (x, y, vx, vy). Contains the bounding box center position (x, y) and their respective velocities. (without aspect ratio a and height h)
So I edit your code :

class KalmanFilter(object):
    def __init__(self):
        ndim, dt = 2, 1.
        self._motion_mat = np.eye(2 * ndim, 2 * ndim) 
        ...
    def initiate(self, measurement):
        ...
        std = [
            2 * self._std_weight_position,
            2 * self._std_weight_position,
            10 * self._std_weight_velocity,
            10 * self._std_weight_velocity]
        ...
    def predict(self, mean, covariance):
        std_pos = [
            self._std_weight_position,
            self._std_weight_position]
        std_vel = [
            self._std_weight_velocity,
            self._std_weight_velocity]
        ...
    def project(self, mean, covariance, confidence=.0):
        std = [
            self._std_weight_position,
            self._std_weight_position]
        ...

But it is not working well.
I really appreciate it if you answer these questions. Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant