NvOSD_RectParams¶
- class pyds.NvOSD_RectParams¶
保存要叠加的框的参数。
- 变量:
left – float, 以像素为单位保存框的左侧坐标。
top – float, 以像素为单位保存框的顶部坐标。
width – float, 以像素为单位保存框的宽度。
height – float, 以像素为单位保存框的高度。
border_width – int, 以像素为单位保存框的边框宽度。
border_color –
NvOSD_ColorParams
, 保存框边框的颜色参数。has_bg_color – int, 保存布尔值,指示框是否具有背景颜色。
bg_color –
NvOSD_ColorParams
, 保存框的背景颜色。has_color_info – int, color_info
color_id – int, 颜色的 ID
reserved – int, 保留字段,供将来使用。仅供内部使用。
- cast(*args, **kwargs)¶
重载函数。
cast(self: capsule) -> pyds.NvOSD_RectParams
将给定的对象/数据转换为
NvOSD_RectParams
, 调用 pyds.NvOSD_RectParams.cast(data)cast(self: int) -> pyds.NvOSD_RectParams
将给定的对象/数据转换为
NvOSD_RectParams
, 调用 pyds.NvOSD_RectParams.cast(data)