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

Method parseOdf

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

:meth: read the object from a dict :param dict odf: a dict with "box" and "score" keys, e.g., odf = {"box": [5,5,20,50], "score": 0.4}

(self, odf)

Source from the content-addressed store, hash-verified

227 self.color = color
228
229 def parseOdf(self, odf):
230 """
231 :meth: read the object from a dict
232 :param dict odf: a dict with "box" and "score" keys, e.g., odf = {"box": [5,5,20,50], "score": 0.4}
233 """
234 super(DetBox, self).parseOdf(odf)
235 if "score" in odf:
236 self.score = odf["score"]
237 self.matched = 0
238 def parseOdfbyname(self,odf,name):
239
240 super(DetBox,self).parseOdfbyname(odf,name)

Callers 1

parseOdfMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected