NvOSD_MaskParams

class pyds.NvOSD_MaskParams

保存要叠加的分割掩码参数。

变量:
  • datafloat*, 掩码缓冲区。

  • sizeint, 掩码缓冲区大小,单位为字节。

  • thresholdint, 二值化阈值。

  • heightint, 掩码高度。

  • widthint, 掩码宽度。

alloc_mask_array(self: pyds.NvOSD_MaskParams) numpy.ndarray

检索并将掩码数据分配为 numpy 数组

cast(*args, **kwargs)

重载函数。

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

将给定对象/数据转换为 NvOSD_MaskParams, 调用 pyds.NvOSD_MaskParams.cast(data)

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

将给定对象/数据转换为 NvOSD_MaskParams, 调用 pyds.NvOSD_MaskParams.cast(data)

get_mask_array(self: pyds.NvOSD_MaskParams) numpy.ndarray

检索掩码数据作为 numpy 数组