Преглед на файлове

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