emilios commited on
Commit
65c89e8
·
verified ·
1 Parent(s): 0d3dafe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def inference(img):
21
  gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY ) # grayscale
22
  #out = cv2.adaptiveThreshold(gray,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,133,9)
23
  #out = cv2.adaptiveThreshold(gray,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,333,3)
24
- out = cv.GaussianBlur( gray ,(5,5),0)
25
  out = cv2.adaptiveThreshold( out ,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,121,1)
26
  #out = cv2.dilate(out,(5,5))
27
  #out = blur = cv.GaussianBlur(img,(5,5),0)
 
21
  gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY ) # grayscale
22
  #out = cv2.adaptiveThreshold(gray,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,133,9)
23
  #out = cv2.adaptiveThreshold(gray,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,333,3)
24
+ out = cv2.GaussianBlur( gray ,(5,5),0)
25
  out = cv2.adaptiveThreshold( out ,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY,121,1)
26
  #out = cv2.dilate(out,(5,5))
27
  #out = blur = cv.GaussianBlur(img,(5,5),0)