Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def inference(img):
|
|
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,333,
|
24 |
out = cv2.dilate(out,(5,5))
|
25 |
|
26 |
|
|
|
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,333,3)
|
24 |
out = cv2.dilate(out,(5,5))
|
25 |
|
26 |
|