浏览代码

Polygon should be the default shape_type (because we use it as polygon)

Kentaro Wada 6 年之前
父节点
当前提交
7a1371e155
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      labelme/label_file.py

+ 1 - 1
labelme/label_file.py

@@ -55,7 +55,7 @@ class LabelFile(object):
                     s['points'],
                     s['line_color'],
                     s['fill_color'],
-                    s.get('shape_type'),
+                    s.get('shape_type', 'polygon'),
                 )
                 for s in data['shapes']
             )