Spaces:
Running
on
Zero
Running
on
Zero
tori29umai
commited on
Commit
โข
0316e9d
1
Parent(s):
eb5d4ba
Update utils/image_utils.py
Browse files- utils/image_utils.py +1 -1
utils/image_utils.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
import cv2
|
4 |
from rembg import remove
|
5 |
|
6 |
-
|
7 |
"""
|
8 |
ๆๅฎใใใ็ปๅใใ่ๆฏใ้คๅปใใ้ๆ้จๅใ็ฝ่ๆฏใซใใฌใณใใใฆ่ฟใ้ขๆฐใ
|
9 |
ๅฐใใชใใใใใๆๅฎใฎใขใซใใก้พๅคไปฅไธใฎๅฐใใชๅ้ๆ้ ๅใ็ก่ฆใใฆใใชใใณใฐใ่กใใพใใ
|
|
|
3 |
import cv2
|
4 |
from rembg import remove
|
5 |
|
6 |
+
def background_removal(input_image_path):
|
7 |
"""
|
8 |
ๆๅฎใใใ็ปๅใใ่ๆฏใ้คๅปใใ้ๆ้จๅใ็ฝ่ๆฏใซใใฌใณใใใฆ่ฟใ้ขๆฐใ
|
9 |
ๅฐใใชใใใใใๆๅฎใฎใขใซใใก้พๅคไปฅไธใฎๅฐใใชๅ้ๆ้ ๅใ็ก่ฆใใฆใใชใใณใฐใ่กใใพใใ
|