NvOSD_RectParams

class pyds.NvOSD_RectParams

Holds the box parameters of the box to be overlaid.

Variables:
  • leftfloat, Holds left coordinate of the box in pixels.

  • topfloat, Holds top coordinate of the box in pixels.

  • widthfloat, Holds width of the box in pixels.

  • heightfloat, Holds height of the box in pixels.

  • border_widthint, Holds border_width of the box in pixels.

  • border_colorNvOSD_ColorParams, Holds color params of the border of the box.

  • has_bg_colorint, Holds boolean value indicating whether box has background color.

  • bg_colorNvOSD_ColorParams, Holds background color of the box.

  • has_color_infoint, color_info

  • color_idint, id of the color

  • reservedint, Reserved field for future usage. For internal purpose only.

cast(*args, **kwargs)

Overloaded function.

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

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

  1. cast(self: int) -> pyds.NvOSD_RectParams

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