NvDsRect

class pyds.NvDsRect

Holds a rectangle’s position and size.

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

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

  • width – float, Holds the rectangle’s width in pixels.

  • height – float, 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)