未验证 提交 508b5f7f 编写于 作者: D duohappy 提交者: GitHub

delete redundant code (#2318)

I read `x2coco.py`, and I think `getbbox` function is redundant.
上级 4993bd21
......@@ -45,12 +45,6 @@ class MyEncoder(json.JSONEncoder):
return super(MyEncoder, self).default(obj)
def getbbox(self, points):
polygons = points
mask = self.polygons_to_mask([self.height, self.width], polygons)
return self.mask2box(mask)
def images_labelme(data, num):
image = {}
image['height'] = data['imageHeight']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册