emilios commited on
Commit
d7bea4a
·
verified ·
1 Parent(s): b05b31f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,133,93)
23
 
24
 
25
  #kernel = cv2.getStructuringElement(cv2.MORPH_RECT, kernelSize)
@@ -36,6 +36,6 @@ iface = gradio.Interface(
36
  outputs='image',
37
  title='Hello World',
38
  description='The simplest interface!',
39
- examples=["lama.webp", "test_lines.jpg","llama.jpg", "dT4KW.png"])
40
 
41
  iface.launch()
 
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,9)
23
 
24
 
25
  #kernel = cv2.getStructuringElement(cv2.MORPH_RECT, kernelSize)
 
36
  outputs='image',
37
  title='Hello World',
38
  description='The simplest interface!',
39
+ examples=["detail_with_lines_and_noise.jpg", "lama.webp", "test_lines.jpg","llama.jpg", "dT4KW.png"])
40
 
41
  iface.launch()