Browse Source

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

Kentaro Wada 6 years ago
parent
commit
7a1371e155
1 changed files with 1 additions and 1 deletions
  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']
             )