Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nwojke committed Aug 16, 2017
1 parent b0ddebf commit 9410b93
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions deep_sort/track.py
Expand Up @@ -51,8 +51,6 @@ class Track:
A unique track identifier.
hits : int
Total number of measurement updates.
hit_streak : int
Total number of consective measurement updates since last miss.
age : int
Total number of frames since first occurance.
time_since_update : int
Expand All @@ -71,7 +69,6 @@ def __init__(self, mean, covariance, track_id, n_init, max_age,
self.covariance = covariance
self.track_id = track_id
self.hits = 1
self.hit_streak = 1
self.age = 1
self.time_since_update = 0

Expand Down Expand Up @@ -142,7 +139,6 @@ def update(self, kf, detection):
self.mean, self.covariance, detection.to_xyah())
self.features.append(detection.feature)

self.hit_streak += 1
self.hits += 1
self.time_since_update = 0
if self.state == TrackState.Tentative and self.hits >= self._n_init:
Expand All @@ -155,7 +151,6 @@ def mark_missed(self):
self.state = TrackState.Deleted
elif self.time_since_update > self._max_age:
self.state = TrackState.Deleted
self.hit_streak = 0

def is_tentative(self):
"""Returns True if this track is tentative (unconfirmed).
Expand Down

0 comments on commit 9410b93

Please sign in to comment.