Tanzeer commited on
Commit
5b880e7
·
1 Parent(s): ec10188

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ if uploaded_image:
75
  cv2.putText(label_map, str(i + 1), (center_x, center_y), cv2.FONT_HERSHEY_SIMPLEX, 1, 255, 2, cv2.LINE_AA)
76
 
77
  # Blend the colorized image with the original image
78
- alpha = 0.6 # Adjust the alpha value to control blending strength
79
  blended_img = cv2.addWeighted(original_img, 1 - alpha, colorized_img, alpha, 0)
80
 
81
  # Overlay the labels on the blended image
 
75
  cv2.putText(label_map, str(i + 1), (center_x, center_y), cv2.FONT_HERSHEY_SIMPLEX, 1, 255, 2, cv2.LINE_AA)
76
 
77
  # Blend the colorized image with the original image
78
+ alpha = 0.7 # Adjust the alpha value to control blending strength
79
  blended_img = cv2.addWeighted(original_img, 1 - alpha, colorized_img, alpha, 0)
80
 
81
  # Overlay the labels on the blended image