NvDsRect

class pyds.NvDsRect

Holds a rectangle’s position and size.

Variables:
  • topfloat, Holds the position of rectangle’s top in pixels.

  • leftfloat, Holds the position of rectangle’s left side in pixels.

  • widthfloat, Holds the rectangle’s width in pixels.

  • heightfloat, Holds the rectangle’s height in pixels.

cast(*args, **kwargs)

Overloaded function.

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

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

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

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