tori29umai commited on
Commit
53bb294
verified
1 Parent(s): bf64d66

Update utils/image_utils.py

Browse files
Files changed (1) hide show
  1. utils/image_utils.py +3 -1
utils/image_utils.py CHANGED
@@ -15,8 +15,10 @@ def background_removal(input_image_path):
15
 
16
  # 鑳屾櫙闄ゅ幓鍑︾悊
17
  result = remove(input_image)
 
 
18
 
19
- return result
20
 
21
  def resize_image_aspect_ratio(image):
22
  # 鍏冦伄鐢诲儚銈点偆銈恒倰鍙栧緱
 
15
 
16
  # 鑳屾櫙闄ゅ幓鍑︾悊
17
  result = remove(input_image)
18
+ result_path = "tmp.png"
19
+ result.save(result_path)
20
 
21
+ return result, result_path
22
 
23
  def resize_image_aspect_ratio(image):
24
  # 鍏冦伄鐢诲儚銈点偆銈恒倰鍙栧緱