emilios commited on
Commit
c6d3f67
1 Parent(s): 2e94c83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ def inference(img):
19
  #out = img * mask
20
 
21
  #out = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY ) # grayscale
22
- #BAD out = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,11,2)
23
- out = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY,40,15)
24
 
25
  #kernel = cv2.getStructuringElement(cv2.MORPH_RECT, kernelSize)
26
  #opening = cv2.morphologyEx(gray, cv2.MORPH_OPEN, kernel)
 
19
  #out = img * mask
20
 
21
  #out = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY ) # grayscale
22
+ out = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,31,3)
23
+
24
 
25
  #kernel = cv2.getStructuringElement(cv2.MORPH_RECT, kernelSize)
26
  #opening = cv2.morphologyEx(gray, cv2.MORPH_OPEN, kernel)