Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
further improved situation mentioned in commit f000fe8
Browse files Browse the repository at this point in the history
  • Loading branch information
mcreng committed Jan 12, 2019
1 parent 708f92b commit e346038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion im_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def remove_background(img):

img[thresh == 255] = 0

kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (13, 13))
kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (17, 17))
erosion = cv2.erode(img, kernel, iterations=1)

erosion_gray = cv2.cvtColor(erosion, cv2.COLOR_BGR2GRAY)
Expand Down

0 comments on commit e346038

Please sign in to comment.