Skip to content

modules.vision.devices.vendors.custom.opencv_stream

Classes Diagram

Module Dependencies

Classes

OpenCVStreamingVendor

Inherits from: BaseVendor

Singleton for OpenCV video streaming from a RTSP source using GST.

Constructor

OpenCVStreamingVendor(self, video_channel: int | str = 0)

Members

_instance
_lock
_initialized
_cap

Methods

get_instance(cls) → OpenCVStreamingVendor

@classmethod

Return the singleton instance, if already created.

_ensure_client_initialized(self) → bool

Check if the capture client is initialized and log an error if not.

get_video_stream(self)
release_stream(self)

Safely release the video stream.

Attributes

logger