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

Method dumpNp

PATH/core/solvers/utils/detools/box.py:93–98  ·  view source on GitHub ↗

:meth: dump the object into a numpy array :return: a numpy array

(self)

Source from the content-addressed store, hash-verified

91 [arr[0], arr[1], (arr[2]-arr[0]), (arr[3]-arr[1])])
92
93 def dumpNp(self):
94 """
95 :meth: dump the object into a numpy array
96 :return: a numpy array
97 """
98 return numpy.array([self.x, self.y, self.x1, self.y1], dtype="float32")
99
100 def intersection(self, boxB):
101 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected