Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def segment_card(image):
|
|
38 |
# Set text properties
|
39 |
font = cv2.FONT_HERSHEY_SIMPLEX
|
40 |
font_scale = 0.7 # Increased font size and thickness for better readability
|
41 |
-
font_thickness = 1
|
42 |
label_text = f"{label} ({confidence:.2f})"
|
43 |
|
44 |
# Get text size for proper background padding
|
|
|
38 |
# Set text properties
|
39 |
font = cv2.FONT_HERSHEY_SIMPLEX
|
40 |
font_scale = 0.7 # Increased font size and thickness for better readability
|
41 |
+
font_thickness = 1
|
42 |
label_text = f"{label} ({confidence:.2f})"
|
43 |
|
44 |
# Get text size for proper background padding
|