Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

rename class

roryclear49b5933de866
diff --git a/ocsort_tracker/kalmanfilter.py b/ocsort_tracker/kalmanfilter.py
index ccbee15..66e3ffa 100644
--- a/ocsort_tracker/kalmanfilter.py
+++ b/ocsort_tracker/kalmanfilter.py
@@ -7,7 +7,7 @@ import sys
import numpy as np
from numpy import dot, zeros, eye, isscalar
-class KalmanFilterNew(object):
+class KalmanFilter(object):
def __init__(self, dim_x, dim_z, dim_u=0):
if dim_x < 1:
raise ValueError('dim_x must be 1 or greater')
diff --git a/ocsort_tracker/ocsort.py b/ocsort_tracker/ocsort.py
index fa39a69..7f5ccd2 100644
--- a/ocsort_tracker/ocsort.py
+++ b/ocsort_tracker/ocsort.py
@@ -66,7 +66,7 @@ class KalmanBoxTracker(object):
Initialises a tracker using initial bounding box.
"""
- from .kalmanfilter import KalmanFilterNew as KalmanFilter
+ from .kalmanfilter import KalmanFilter
self.kf = KalmanFilter(dim_x=7, dim_z=4)
self.kf.F = np.array([[1, 0, 0, 0, 1, 0, 0], [0, 1, 0, 0, 0, 1, 0], [0, 0, 1, 0, 0, 0, 1], [
0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 1]])