NvDsInferObjectDetectionInfo

class pyds.NvDsInferObjectDetectionInfo

Holds information about one parsed object from detector’s output.

Variables:
  • classId – int, ID of the class to which the object belongs.

  • left – float, Horizontal offset of the bounding box shape for the object.

  • top – float, Vertical offset of the bounding box shape for the object.

  • width – float, Width of the bounding box shape for the object.

  • height – float, Height of the bounding box shape for the object.

  • detectionConfidence – float, Object detection confidence. Should be a float value in the range [0.0,1.0].

cast(*args, **kwargs)

Overloaded function.

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

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

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

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