Просмотр исходного кода

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

Kentaro Wada 6 лет назад
Родитель
Сommit
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']
             )