pynaviz.video.video_plot.PlotVideo.__init__#

PlotVideo.__init__(video_path: str | Path, t: ndarray[tuple[int, ...], dtype[_ScalarType_co]] | None = None, stream_index: int = 0, index=None, parent=None)[source]#

Initialize the PlotVideo instance with a given video source.

Parameters:
  • video_path (str or pathlib.Path) – Path to the video file to be visualized.

  • t (NDArray, optional) – Optional time vector to use for syncing frames.

  • stream_index (int, default=0) – Index of the stream to read in the video file.

  • index (int, optional) – Controller ID index.

  • parent (object, optional) – Parent GUI container or widget.