Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -210,8 +210,8 @@ def blur_im(img,bounds):
|
|
210 |
y = int(p0[1])
|
211 |
w = int(p2[0]) - int(x)
|
212 |
h = int(p2[1]) - int(y)
|
213 |
-
kernel = np.ones((
|
214 |
-
im[y:y+h, x:x+w] = cv2.dilate(im[y:y+h, x:x+w], kernel, iterations=
|
215 |
im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w],(51,51),0)
|
216 |
|
217 |
|
|
|
210 |
y = int(p0[1])
|
211 |
w = int(p2[0]) - int(x)
|
212 |
h = int(p2[1]) - int(y)
|
213 |
+
kernel = np.ones((1, 1), np.uint8)
|
214 |
+
im[y:y+h, x:x+w] = cv2.dilate(im[y:y+h, x:x+w], kernel, iterations=6)
|
215 |
im[y:y+h, x:x+w] = cv2.GaussianBlur(im[y:y+h, x:x+w],(51,51),0)
|
216 |
|
217 |
|