emilios commited on
Commit
2cd00e8
1 Parent(s): 2c1a824

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def inference(img):
19
  #out = img * mask
20
 
21
  gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY ) # grayscale
22
- out = cv2.adaptiveThreshold(gray,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,13,9)
23
 
24
 
25
  #kernel = cv2.getStructuringElement(cv2.MORPH_RECT, kernelSize)
 
19
  #out = img * mask
20
 
21
  gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY ) # grayscale
22
+ out = cv2.adaptiveThreshold(gray,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,133,93)
23
 
24
 
25
  #kernel = cv2.getStructuringElement(cv2.MORPH_RECT, kernelSize)