NvOSD_ColorParams¶
- class pyds.NvOSD_ColorParams¶
Holds the color parameters of the box or text to be overlayed. See
NvOSD_TextParams
docs for example usage.- Variables:
red – float, Holds red component of color. Value must be in the range 0-1.
green – float, Holds green component of color. Value must be in the range 0-1.
blue – float, Holds blue component of color. Value must be in the range 0-1.
alpha – float, Holds alpha component of color. Value must be in the range 0-1.
- cast(*args, **kwargs)¶
Overloaded function.
cast(self: capsule) -> pyds.NvOSD_ColorParams
cast given object/data to
NvOSD_ColorParams
, call pyds.NvOSD_ColorParams.cast(data)cast(self: int) -> pyds.NvOSD_ColorParams
cast given object/data to
NvOSD_ColorParams
, call pyds.NvOSD_ColorParams.cast(data)
- set(self: pyds.NvOSD_ColorParams, red: float, green: float, blue: float, alpha: float) None ¶
Sets the color values.
- Parameters:
red – Value for red component (must be in range 0.-1.)
green – Value for green component (must be in range 0.-1.)
blue – Value for blue component (must be in range 0.-1.)
alpha – Value for alpha component (must be in range 0.-1.)