emilios commited on
Commit
eb3bab9
1 Parent(s): 2f346ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -20,6 +20,7 @@ def inference(img):
20
 
21
  #out = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY ) # grayscale
22
  out = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,11,2)
 
23
 
24
  #kernel = cv2.getStructuringElement(cv2.MORPH_RECT, kernelSize)
25
  #opening = cv2.morphologyEx(gray, cv2.MORPH_OPEN, kernel)
 
20
 
21
  #out = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY ) # grayscale
22
  out = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,11,2)
23
+ #BAD 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)