pynaviz.audiovideo.video_plot.PlotVideo.__init__#
- PlotVideo.__init__(video, t=None, stream_index=0, index=None, start_worker=True, parent=None)[source]#
Initialize the PlotVideo instance with a given video source.
- Parameters:
video (
strorpathlib.PathorVideoHandler) – Path to the video file to be visualized or a VideoHandler object.t (
numpy.typing.NDArray, optional) – Time vector to use for syncing frames.stream_index (
int, default0) – Index of the stream to read in the video file.index (
int, optional) – Controller ID index.start_worker (
bool, optional) – Start the worker thread. This should be set to true when used in GUI but for speeding up tests, should be set to False.parent (
object, optional) – Parent GUI container or widget.