NvDsInferObjectDetectionInfo

class pyds.NvDsInferObjectDetectionInfo

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

Variables
  • classIdint, ID of the class to which the object belongs.

  • leftfloat, Horizontal offset of the bounding box shape for the object.

  • topfloat, Vertical offset of the bounding box shape for the object.

  • widthfloat, Width of the bounding box shape for the object.

  • heightfloat, Height of the bounding box shape for the object.

  • detectionConfidencefloat, 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)