Appearance
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
Start the video stream.
stop(self) → None
Stop the video stream.
get_fps(self) → float
Get the frames per second (FPS) of the video stream.
get_frame(self) → tuple[bool, any]
Retrieve the next frame from the video stream.
is_opened(self) → bool
Check if the video stream is opened.