dhanushreddy29
commited on
Commit
·
e4087c5
1
Parent(s):
a9d976a
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,9 @@ def segmentImage(img_path):
|
|
49 |
new_sizes = [size * scale_factor * scale_factor * c * c for size in sizes]
|
50 |
# Round the grain sizes to 2 decimal places
|
51 |
new_sizes = [round(size, 2) for size in new_sizes]
|
|
|
|
|
|
|
52 |
gradient_img = np.zeros((img.shape[0], img.shape[1], 3), np.uint8)
|
53 |
colors = []
|
54 |
for i in range(len(new_sizes)):
|
|
|
49 |
new_sizes = [size * scale_factor * scale_factor * c * c for size in sizes]
|
50 |
# Round the grain sizes to 2 decimal places
|
51 |
new_sizes = [round(size, 2) for size in new_sizes]
|
52 |
+
# Print the grain sizes
|
53 |
+
print("Sorted Areas = ", sorted(list(new_sizes)))
|
54 |
+
print("Length = ", len(new_sizes))
|
55 |
gradient_img = np.zeros((img.shape[0], img.shape[1], 3), np.uint8)
|
56 |
colors = []
|
57 |
for i in range(len(new_sizes)):
|