回答編集履歴
1
実行結果追記
test
CHANGED
@@ -74,16 +74,36 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
-
print(get_smallest_rect_index(rects))
|
77
|
+
print("min index:", get_smallest_rect_index(rects))
|
78
78
|
|
79
|
-
print(get_largest_rect_index(rects))
|
79
|
+
print("max index:", get_largest_rect_index(rects))
|
80
80
|
|
81
|
-
print(get_smallest_rect(rects))
|
81
|
+
print("min rect:", get_smallest_rect(rects))
|
82
82
|
|
83
|
-
print(get_largest_rect(rects))
|
83
|
+
print("max rect:", get_largest_rect(rects))
|
84
84
|
|
85
|
-
print(get_smallest_rect_area(rects))
|
85
|
+
print("min area:", get_smallest_rect_area(rects))
|
86
86
|
|
87
|
-
print(get_largest_rect_area(rects))
|
87
|
+
print("man area:", get_largest_rect_area(rects))
|
88
88
|
|
89
89
|
```
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
実行結果:
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
min index: 1
|
98
|
+
|
99
|
+
max index: 0
|
100
|
+
|
101
|
+
min rect: [0.5, 1.1]
|
102
|
+
|
103
|
+
max rect: [2.1, 4.1]
|
104
|
+
|
105
|
+
min area: 0.55
|
106
|
+
|
107
|
+
man area: 8.61
|
108
|
+
|
109
|
+
```
|