DHEIVER commited on
Commit
6a4a533
·
1 Parent(s): 17b5eb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, 30)
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]