Advances the state vector and returns the predicted bounding box estimate.
(self)
| 102 | self.kf.update(convert_bbox_to_z(bbox)) |
| 103 | |
| 104 | def predict(self): |
| 105 | """ |
| 106 | Advances the state vector and returns the predicted bounding box estimate. |
| 107 | """ |
| 108 | if ((self.kf.x[6] + self.kf.x[2]) <= 0): |
| 109 | self.kf.x[6] *= 0.0 |
| 110 | self.kf.predict() |
| 111 | self.age += 1 |
| 112 | if (self.time_since_update > 0): |
| 113 | self.hit_streak = 0 |
| 114 | self.time_since_update += 1 |
| 115 | self.history.append(convert_x_to_bbox(self.kf.x)) |
| 116 | return self.history[-1] |
| 117 | |
| 118 | def get_state(self): |
| 119 | """ |
no test coverage detected