Omnibus commited on
Commit
d188363
Β·
1 Parent(s): 9c84b4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -226,7 +226,7 @@ def blur_im(img,bounds):
226
  w = int(p2[0]) - int(x)
227
  h = int(p2[1]) - int(y)
228
  draw = ImageDraw.Draw(im)
229
- font_size=round(int(w)*0.2)
230
  font = ImageFont.truetype("./fonts/unifont-15.0.01.ttf", int(font_size))
231
  draw.text((x, y),text, font = font, fill=(0,0,0))
232
  #kernel = np.ones((1, 1), np.uint8)
 
226
  w = int(p2[0]) - int(x)
227
  h = int(p2[1]) - int(y)
228
  draw = ImageDraw.Draw(im)
229
+ font_size=int(int(w)*0.2)
230
  font = ImageFont.truetype("./fonts/unifont-15.0.01.ttf", int(font_size))
231
  draw.text((x, y),text, font = font, fill=(0,0,0))
232
  #kernel = np.ones((1, 1), np.uint8)