muk42 commited on
Commit
7870519
·
1 Parent(s): 50c28f0
Files changed (1) hide show
  1. inference_tab/inference_logic.py +1 -1
inference_tab/inference_logic.py CHANGED
@@ -292,7 +292,7 @@ def extractSegments(image_path, min_size=500, margin=100):
292
  shaded = cropped_image.copy()
293
  overlay = cropped_image.copy()
294
  overlay[cropped_mask == 1] = (255, 200, 100)
295
- alpha = 0.75
296
  shaded = cv2.addWeighted(overlay, alpha, shaded, 1 - alpha, 0)
297
 
298
  # Save the masked image
 
292
  shaded = cropped_image.copy()
293
  overlay = cropped_image.copy()
294
  overlay[cropped_mask == 1] = (255, 200, 100)
295
+ alpha = 0.35
296
  shaded = cv2.addWeighted(overlay, alpha, shaded, 1 - alpha, 0)
297
 
298
  # Save the masked image