NvOSD_MaskParams¶
- class pyds.NvOSD_MaskParams¶
保存要叠加的分割掩码参数。
- 变量:
data – float*, 掩码缓冲区。
size – int, 掩码缓冲区大小,单位为字节。
threshold – int, 二值化阈值。
height – int, 掩码高度。
width – int, 掩码宽度。
- alloc_mask_array(self: pyds.NvOSD_MaskParams) numpy.ndarray ¶
检索并将掩码数据分配为 numpy 数组
- cast(*args, **kwargs)¶
重载函数。
cast(self: capsule) -> pyds.NvOSD_MaskParams
将给定对象/数据转换为
NvOSD_MaskParams
, 调用 pyds.NvOSD_MaskParams.cast(data)cast(self: int) -> pyds.NvOSD_MaskParams
将给定对象/数据转换为
NvOSD_MaskParams
, 调用 pyds.NvOSD_MaskParams.cast(data)
- get_mask_array(self: pyds.NvOSD_MaskParams) numpy.ndarray ¶
检索掩码数据作为 numpy 数组