MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __init__

Method __init__

PATH/core/solvers/utils/detools/box.py:15–18  ·  view source on GitHub ↗
(self, x=0.0, y=0.0, w=0.0, h=0.0, tag=None)

Source from the content-addressed store, hash-verified

13 :ivar str tag: tag of bounding box
14 """
15 def __init__(self, x=0.0, y=0.0, w=0.0, h=0.0, tag=None):
16 self.x, self.y, self.w, self.h = map(float, [x, y, w, h])
17 self.tag = tag
18 self.eps = 1e-6
19
20 def __str__(self):
21 return str(self.dumpOdf())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected