: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)
| 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) |