:meth: dump the object into a dict :return: a dict with "box" key
(self)
| 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 | """ |