emilios commited on
Commit
cc6872c
1 Parent(s): d7bea4a

Update app.py

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