gurwindersingh commited on
Commit
f296155
·
verified ·
1 Parent(s): 75534a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ model = load_model('sudoku_net.h5')
12
 
13
  def preprocess(image):
14
  gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
15
- blur = cv2.GaussianBlur(gray, (3,3),6)
16
- #blur = cv2.bilateralFilter(gray,9,75,75)
17
  threshold_img = cv2.adaptiveThreshold(blur,255,1,1,11,2)
18
  return threshold_img
19
 
 
12
 
13
  def preprocess(image):
14
  gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
15
+ # blur = cv2.GaussianBlur(gray, (3,3),6)
16
+ blur = cv2.bilateralFilter(gray,9,75,75)
17
  threshold_img = cv2.adaptiveThreshold(blur,255,1,1,11,2)
18
  return threshold_img
19