Close and re-open the VideoStream (should be equivalent to calling `seek(0)`).
(self)
| 273 | self._cap.set(cv2.CAP_PROP_POS_FRAMES, 0) |
| 274 | |
| 275 | def reset(self): |
| 276 | """Close and re-open the VideoStream (should be equivalent to calling `seek(0)`).""" |
| 277 | self._cap.release() |
| 278 | self._open_capture(float(self._frame_rate)) |
| 279 | |
| 280 | def read(self, decode: bool = True) -> np.ndarray | bool: |
| 281 | if not self._cap.isOpened(): |