NvOSD_MaskParams

class pyds.NvOSD_MaskParams

Holds the mask parameters of the segment to be overlayed.

Variables:
  • data – float*, Mask buffer.

  • size – int, Size of the mask buffer in bytes.

  • threshold – int, Threshold for binarization.

  • height – int, Mask height.

  • width – int, Mask width.

alloc_mask_array(self: pyds.NvOSD_MaskParams) → numpy.ndarray

Retrieve and allocate mask data as numpy array

cast(*args, **kwargs)

Overloaded function.

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

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

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

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

get_mask_array(self: pyds.NvOSD_MaskParams) → numpy.ndarray

Retrieve mask data as numpy array