MCPcopy Create free account
hub / github.com/BICLab/SpikeYOLO / areas

Method areas

ultralytics/utils/instance.py:73–76  ·  view source on GitHub ↗

Return box areas.

(self)

Source from the content-addressed store, hash-verified

71 self.format = format
72
73 def areas(self):
74 """Return box areas."""
75 self.convert('xyxy')
76 return (self.bboxes[:, 2] - self.bboxes[:, 0]) * (self.bboxes[:, 3] - self.bboxes[:, 1])
77
78 # def denormalize(self, w, h):
79 # if not self.normalized:

Callers 1

bbox_areasMethod · 0.45

Calls 1

convertMethod · 0.95

Tested by

no test coverage detected