DetectedObject Class
Represents a physical object detected in an image.
- Inheritance
-
builtins.objectDetectedObject
Constructor
DetectedObject(bounding_box: Rectangle, name: str = '', confidence: float = 0.0)
Parameters
Name | Description |
---|---|
bounding_box
Required
|
|
name
|
|
confidence
|
Default value: 0.0
|
Attributes
bounding_box
A rectangular boundary within which the object was detected.
Coordinates are are in pixels, with (0,0) being the top-left of the source image.
bounding_box: Rectangle
confidence
A score that represents the likelihood that this detection was accurate.
Confidence scores span the range of 0.0 to 1.0 (inclusive), with higher values indicating higher probability.
confidence: float = 0.0
name
A label that briefly describes the detected object.
name: str = ''
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python