NvDsInferAttribute¶
- class pyds.NvDsInferAttribute¶
保存关于一个分类属性的信息。
- 变量:
atttributeIndex – int, 标签的索引。此索引对应于初始化期间在 outputCoverageLayerNames 向量中指定的输出层顺序。警告:拼写错误即将弃用,请将所有用法更改为 “attributeIndex”。
attributeIndex – int, 标签的索引。此索引对应于初始化期间在 outputCoverageLayerNames 向量中指定的输出层顺序。
attributeValue – int, 标签的输出。
attributeConfidence – float, 分类属性的置信度。
attributeLabel – str, 属性的字符串标签。不应释放字符串的内存。
- cast(*args, **kwargs)¶
重载函数。
cast(self: capsule) -> pyds.NvDsInferAttribute
cast given object/data to
NvDsInferObjectDetectionInfo
, call pyds.NvDsInferObjectDetectionInfo.cast(data)cast(self: int) -> pyds.NvDsInferAttribute
cast given object/data to
NvDsInferObjectDetectionInfo
, call pyds.NvDsInferObjectDetectionInfo.cast(data)