Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ if uploaded_image:
|
|
69 |
cv2.putText(label_map, str(i + 1), (center_x, center_y), cv2.FONT_HERSHEY_SIMPLEX, 1, 255, 2, cv2.LINE_AA)
|
70 |
|
71 |
# Blend the colorized image with the original image
|
72 |
-
alpha = 0.
|
73 |
blended_img = cv2.addWeighted(original_img, 1 - alpha, colorized_img, alpha, 0)
|
74 |
|
75 |
# Overlay the labels on the blended image
|
|
|
69 |
cv2.putText(label_map, str(i + 1), (center_x, center_y), cv2.FONT_HERSHEY_SIMPLEX, 1, 255, 2, cv2.LINE_AA)
|
70 |
|
71 |
# Blend the colorized image with the original image
|
72 |
+
alpha = 0.4 # Adjust the alpha value to control blending strength
|
73 |
blended_img = cv2.addWeighted(original_img, 1 - alpha, colorized_img, alpha, 0)
|
74 |
|
75 |
# Overlay the labels on the blended image
|