Advances the state vector and returns the predicted bounding box estimate.
(self)
| 120 | self.kf.update(convert_bbox_to_z(bbox)) |
| 121 | |
| 122 | def predict(self): |
| 123 | """ |
| 124 | Advances the state vector and returns the predicted bounding box estimate. |
| 125 | """ |
| 126 | if((self.kf.x[6]+self.kf.x[2])<=0): |
| 127 | self.kf.x[6] *= 0.0 |
| 128 | self.kf.predict() |
| 129 | self.age += 1 |
| 130 | if(self.time_since_update>0): |
| 131 | self.hit_streak = 0 |
| 132 | self.time_since_update += 1 |
| 133 | self.history.append(convert_x_to_bbox(self.kf.x)) |
| 134 | return self.history[-1] |
| 135 | |
| 136 | def get_state(self): |
| 137 | """ |
no test coverage detected