MCPcopy Create free account
hub / github.com/BeingBeyond/BeTTER / __init__

Method __init__

tools/render/render_episode.py:1392–1399  ·  view source on GitHub ↗
(self, path: Path, *, fps: float)

Source from the content-addressed store, hash-verified

1390
1391class _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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected