opacity
Browse files
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.
|
| 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
|