Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -201,7 +201,7 @@ def blur_im(img,bounds,target_lang,trans_lang,ocr_sens,font_fac,t_color):
|
|
201 |
im[y:y+h, x:x+w] = cv2.dilate(im[y:y+h, x:x+w], kernel, iterations=3)
|
202 |
pass
|
203 |
elif t_color=="White":
|
204 |
-
im[y:y+h, x:x+w] = cv2.erode(im[y:y+h, x:x+w], kernel, iterations=
|
205 |
pass
|
206 |
else:
|
207 |
pass
|
|
|
201 |
im[y:y+h, x:x+w] = cv2.dilate(im[y:y+h, x:x+w], kernel, iterations=3)
|
202 |
pass
|
203 |
elif t_color=="White":
|
204 |
+
im[y:y+h, x:x+w] = cv2.erode(im[y:y+h, x:x+w], kernel, iterations=1)
|
205 |
pass
|
206 |
else:
|
207 |
pass
|