anshuln commited on
Commit
e13dfc2
1 Parent(s): 0b9869b

Update params

Browse files
Files changed (1) hide show
  1. 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.75 # 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)
 
44
  alpha_channel[mask_resized < 5] = 0
45
 
46
  # Set the opacity level for non-black pixels
47
+ opacity = 0.4 # 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)