Updates the state vector with observed bbox.
(self, bbox)
| 92 | self.age = 0 |
| 93 | |
| 94 | def update(self, bbox): |
| 95 | """ |
| 96 | Updates the state vector with observed bbox. |
| 97 | """ |
| 98 | self.time_since_update = 0 |
| 99 | self.history = [] |
| 100 | self.hits += 1 |
| 101 | self.hit_streak += 1 |
| 102 | self.kf.update(convert_bbox_to_z(bbox)) |
| 103 | |
| 104 | def predict(self): |
| 105 | """ |
no test coverage detected