Update params
Browse files- src/app_cached_videos.py +1 -1
src/app_cached_videos.py
CHANGED
@@ -44,7 +44,7 @@ def overlay_mask(img, mask):
|
|
44 |
alpha_channel[mask_resized < 5] = 0
|
45 |
|
46 |
# Set the opacity level for non-black pixels
|
47 |
-
opacity = 0.
|
48 |
alpha_channel[mask_resized != 0] = int(255 * opacity)
|
49 |
|
50 |
# Create a 4-channel image (BGR + Alpha)
|
|
|
44 |
alpha_channel[mask_resized < 5] = 0
|
45 |
|
46 |
# Set the opacity level for non-black pixels
|
47 |
+
opacity = 0.3 # Adjust this value as needed (0.0 to 1.0)
|
48 |
alpha_channel[mask_resized != 0] = int(255 * opacity)
|
49 |
|
50 |
# Create a 4-channel image (BGR + Alpha)
|