Anustup commited on
Commit
5e83515
·
verified ·
1 Parent(s): 7688b35

Update texture_transfer.py

Browse files
Files changed (1) hide show
  1. texture_transfer.py +2 -2
texture_transfer.py CHANGED
@@ -1,6 +1,6 @@
1
  from PIL import Image, ImageOps
2
  import numpy as np
3
- from create_print_layover import create_hard_light_layover
4
  import cv2
5
 
6
 
@@ -13,7 +13,7 @@ def create_layover(background_image, layer_image, opacity):
13
  foreground_img_raw = foreground_img_raw.convert("RGBA")
14
  foreground_img = np.array(foreground_img_raw)
15
  foreground_img_float = foreground_img.astype(float)
16
- blended_img_float = create_hard_light_layover(background_img_float, foreground_img_float, opacity)
17
  blended_img = np.uint8(blended_img_float)
18
  blended_img_raw = Image.fromarray(blended_img)
19
  output_path = "lay_over_image.png"
 
1
  from PIL import Image, ImageOps
2
  import numpy as np
3
+ from create_print_layover import create_hard_light_layover, create_soft_light_layover
4
  import cv2
5
 
6
 
 
13
  foreground_img_raw = foreground_img_raw.convert("RGBA")
14
  foreground_img = np.array(foreground_img_raw)
15
  foreground_img_float = foreground_img.astype(float)
16
+ blended_img_float = create_soft_light_layover(background_img_float, foreground_img_float, opacity)
17
  blended_img = np.uint8(blended_img_float)
18
  blended_img_raw = Image.fromarray(blended_img)
19
  output_path = "lay_over_image.png"