Skip to content

modules.vision.streaming.video_source

Classes Diagram

Classes

VideoSource

Inherits from: abc.ABC

Abstract base class for video source implementations.

Define the interface and common utilities expected from video source implementations.
Concrete source classes (e.g., RtspStream, ...) must inherit from this class
and implement the abstract methods.

Methods

start(self) → None

@abstractmethod

Start the video stream.

stop(self) → None

@abstractmethod

Stop the video stream.

get_fps(self) → float

@abstractmethod

Get the frames per second (FPS) of the video stream.

get_frame(self) → tuple[bool, any]

@abstractmethod

Retrieve the next frame from the video stream.

is_opened(self) → bool

@abstractmethod

Check if the video stream is opened.