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

Method dumpOdf

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

:meth: dump the object into a dict :return: a dict with "box" key

(self)

Source from the content-addressed store, hash-verified

71 if "tag" in odf:
72 self.tag = odf["tag"]
73 def dumpOdf(self):
74 """
75 :meth: dump the object into a dict
76 :return: a dict with "box" key
77 """
78 odf = dict()
79 odf["box"] = [self.x, self.y, self.w, self.h]
80 if self.tag is not None:
81 odf["tag"] = self.tag
82 return odf
83
84 def parseNp(self, arr):
85 """

Callers 1

__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected