Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ def classify_image_with_overlay(img):
|
|
29 |
|
30 |
# Add a white rectangle for the label
|
31 |
font = cv2.FONT_HERSHEY_SIMPLEX
|
32 |
-
org = (10,
|
33 |
-
font_scale = 1
|
34 |
color = (255, 255, 255) # White color
|
35 |
thickness = 2
|
36 |
text_size = cv2.getTextSize(f"{label}: {probability:.2f}", font, font_scale, thickness)[0]
|
|
|
29 |
|
30 |
# Add a white rectangle for the label
|
31 |
font = cv2.FONT_HERSHEY_SIMPLEX
|
32 |
+
org = (10, 50) # Adjust the position of the label
|
33 |
+
font_scale = 1.5 # Increase the font size
|
34 |
color = (255, 255, 255) # White color
|
35 |
thickness = 2
|
36 |
text_size = cv2.getTextSize(f"{label}: {probability:.2f}", font, font_scale, thickness)[0]
|