DetectedPerson Class

Represents a person detected in an image.

Inheritance
builtins.object
DetectedPerson

Constructor

DetectedPerson(bounding_box: Rectangle, confidence: float = 0.0)

Parameters

Name Description
bounding_box
Required
confidence
Default value: 0.0

Attributes

bounding_box

A rectangular boundary within which the person 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