NvOSD_MaskParams

class pyds.NvOSD_MaskParams

Holds the mask parameters of the segment to be overlayed.

Variables:
  • datafloat*, Mask buffer.

  • sizeint, Size of the mask buffer in bytes.

  • thresholdint, Threshold for binarization.

  • heightint, Mask height.

  • widthint, Mask width.

alloc_mask_array(self: pyds.NvOSD_MaskParams) array

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) array

Retrieve mask data as numpy array