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:
  • redfloat, Holds red component of color. Value must be in the range 0-1.

  • greenfloat, Holds green component of color. Value must be in the range 0-1.

  • bluefloat, Holds blue component of color. Value must be in the range 0-1.

  • alphafloat, Holds alpha component of color. Value must be in the range 0-1.

cast(*args, **kwargs)

Overloaded function.

  1. cast(self: capsule) -> pyds.NvOSD_ColorParams

cast given object/data to NvOSD_ColorParams, call pyds.NvOSD_ColorParams.cast(data)

  1. 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.)