Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ if uploaded_image:
|
|
67 |
cv2.putText(label_map, str(i + 1), (center_x, center_y), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 0, 0), 2, cv2.LINE_AA)
|
68 |
|
69 |
# Blend the colorized image with the blue background
|
70 |
-
alpha = 0.
|
71 |
blended_img = cv2.addWeighted(blue_background, 1 - alpha, colorized_img, alpha, 0)
|
72 |
|
73 |
# Display the final result
|
|
|
67 |
cv2.putText(label_map, str(i + 1), (center_x, center_y), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 0, 0), 2, cv2.LINE_AA)
|
68 |
|
69 |
# Blend the colorized image with the blue background
|
70 |
+
alpha = 0.3 # Adjust the alpha value to control blending strength
|
71 |
blended_img = cv2.addWeighted(blue_background, 1 - alpha, colorized_img, alpha, 0)
|
72 |
|
73 |
# Display the final result
|