Omnibus commited on
Commit
5da9516
Β·
1 Parent(s): 7f67ab8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -189,8 +189,8 @@ def blur_im(img,bounds,target_lang,trans_lang):
189
  im = cv2.resize(im, (1000,(int(1000*float(rato)))))
190
  elif im_w < im_h:
191
  rato=im_w/im_h
192
- im = cv2.resize(im, (int(1000*float(rato)),1000)
193
- else:
194
  im = cv2.resize(im,(1000,1000))
195
  for bound in bounds:
196
  if bound[2]>=0.3:
 
189
  im = cv2.resize(im, (1000,(int(1000*float(rato)))))
190
  elif im_w < im_h:
191
  rato=im_w/im_h
192
+ im = cv2.resize(im, (int(1000*float(rato)),1000))
193
+ elif im_w == im_h:
194
  im = cv2.resize(im,(1000,1000))
195
  for bound in bounds:
196
  if bound[2]>=0.3: