NvDsInferAttribute

class pyds.NvDsInferAttribute

保存关于一个分类属性的信息。

变量:
  • atttributeIndexint, 标签的索引。此索引对应于初始化期间在 outputCoverageLayerNames 向量中指定的输出层顺序。警告:拼写错误即将弃用,请将所有用法更改为 “attributeIndex”。

  • attributeIndexint, 标签的索引。此索引对应于初始化期间在 outputCoverageLayerNames 向量中指定的输出层顺序。

  • attributeValueint, 标签的输出。

  • attributeConfidencefloat, 分类属性的置信度。

  • attributeLabelstr, 属性的字符串标签。不应释放字符串的内存。

cast(*args, **kwargs)

重载函数。

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

cast given object/data to NvDsInferObjectDetectionInfo, call pyds.NvDsInferObjectDetectionInfo.cast(data)

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

cast given object/data to NvDsInferObjectDetectionInfo, call pyds.NvDsInferObjectDetectionInfo.cast(data)