dhanushreddy29 commited on
Commit
ed098b7
1 Parent(s): e4087c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,8 +36,8 @@ def segmentImage(img_path):
36
  if img[i][j] > 0:
37
  img[i][j] = 1
38
  kernel = np.ones((3, 3), np.uint8)
39
- img = cv2.erode(img, kernel, iterations=1)
40
- img = cv2.dilate(img, kernel, iterations=1)
41
  img = ndimage.binary_fill_holes(img).astype(int)
42
  labels, nlabels = ndimage.label(img)
43
 
 
36
  if img[i][j] > 0:
37
  img[i][j] = 1
38
  kernel = np.ones((3, 3), np.uint8)
39
+ # img = cv2.erode(img, kernel, iterations=1)
40
+ # img = cv2.dilate(img, kernel, iterations=1)
41
  img = ndimage.binary_fill_holes(img).astype(int)
42
  labels, nlabels = ndimage.label(img)
43