(self, path: Path, *, fps: float)
| 1390 | |
| 1391 | class _OpenCvVideoWriter: |
| 1392 | def __init__(self, path: Path, *, fps: float) -> None: |
| 1393 | self._path = path |
| 1394 | self._fps = float(fps) |
| 1395 | self._writer = None |
| 1396 | self._frame_shape: tuple[int, int] | None = None |
| 1397 | self._path.parent.mkdir(parents=True, exist_ok=True) |
| 1398 | if self._path.exists(): |
| 1399 | self._path.unlink() |
| 1400 | |
| 1401 | def append_data(self, rgb: Any) -> None: |
| 1402 | import cv2 |
nothing calls this directly
no outgoing calls
no test coverage detected