瀏覽代碼

Update figures_and_colors

Vsevolod Levitan 11 月之前
父節點
當前提交
6bd597fcab
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      figures_and_colors/main.py

+ 3 - 3
figures_and_colors/main.py

@@ -11,11 +11,11 @@ def get_shapes(regions):
         eccent = region.eccentricity
         if eccent == 0:
             if region.image.size == region.area:
-                key = "rectangle"
+                key = "rect"
             else:
-                key = "circle"
+                key = "ball"
         else:
-            key = "rectangle"
+            key = "rect"
         shapes[key] += 1
     return shapes