Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,8 @@ def inference(img, v1 = "121" , v2 = 9 ):
|
|
25 |
out = cv2.GaussianBlur( gray ,(5,5),0)
|
26 |
# v1 121 , v2 1
|
27 |
#out = cv2.adaptiveThreshold( out ,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, int( float(v1) ) , int( float(v2) ) )
|
28 |
-
out = cv2.adaptiveThreshold( out ,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 77 , int ( v2 ) )
|
|
|
29 |
#out = blur = cv.GaussianBlur(img,(5,5),0)
|
30 |
#out = cv2.threshold(out,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
|
31 |
|
|
|
25 |
out = cv2.GaussianBlur( gray ,(5,5),0)
|
26 |
# v1 121 , v2 1
|
27 |
#out = cv2.adaptiveThreshold( out ,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, int( float(v1) ) , int( float(v2) ) )
|
28 |
+
#out = cv2.adaptiveThreshold( out ,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 77 , int ( v2 ) )
|
29 |
+
out = cv2.adaptiveThreshold( out ,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 44 , 3 )
|
30 |
#out = blur = cv.GaussianBlur(img,(5,5),0)
|
31 |
#out = cv2.threshold(out,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
|
32 |
|