View Source ExVision.Types.BBox (Ex Vision v0.4.0)
A struct describing the bounding box returned by the object detection model.
Summary
Types
A type describing the Bounding Box object.
Types
Exactly like t/1
, but doesn't put any constraints on the label
field:
@type t(label_t) :: %ExVision.Types.BBox{ label: label_t, score: number(), x1: number(), x2: number(), y1: number(), y2: number() }
A type describing the Bounding Box object.
Bounding box is a rectangle encompassing the region. When used in object detectors, this box will describe the location of the object in the image.
x1
- x componenet of the upper left cornery1
- y componenet of the upper left cornerx2
- x componenet of the lower righty2
- y componenet of the lower rightscore
- confidence of the preditionlabel
- label assigned to this bounding box
Functions
Return the height of the bounding box
Return the width of the bounding box