Tanzeer commited on
Commit
e84f8ab
·
1 Parent(s): 8271835

Update app.py

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