Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def inference(img, v1 = "121" , v2 = 9 ):
|
|
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,
|
30 |
#out = blur = cv.GaussianBlur(img,(5,5),0)
|
31 |
#out = cv2.threshold(out,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
|
32 |
|
|
|
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, 233 , 1 )
|
30 |
#out = blur = cv.GaussianBlur(img,(5,5),0)
|
31 |
#out = cv2.threshold(out,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
|
32 |
|