Skip to content

Commit

Permalink
Update BackgroundRemove.py
Browse files Browse the repository at this point in the history
  • Loading branch information
muki01 authored Nov 8, 2022
1 parent 76f5d92 commit 23e5244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BackgroundRemove/BackgroundRemove.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

segmentor = SelfiSegmentation()

img_arkaplan = cv2.imread("./BackgroundRemove/background2.png")
background_img = cv2.imread("./BackgroundRemove/background2.png")

while True:
success, img = cap.read()

#imgOut = segmentor.removeBG(img, (0, 0, 0), threshold=0.8)
imgOut = segmentor.removeBG(img, img_arkaplan, threshold=0.8)
imgOut = segmentor.removeBG(img, background_img, threshold=0.8)

#cv2.imshow("Image", img)
cv2.imshow("Image-Out", imgOut)
Expand Down

0 comments on commit 23e5244

Please sign in to comment.