DerrylNessie commited on
Commit
eaea213
1 Parent(s): 96a8f30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,12 +42,12 @@ def inference(img, lang):
42
  #mask = PIL.Image.open(img.name)
43
  mask = Image.new("L", im.size, 0)
44
  draw_mask(mask, bounds)
45
- dst = cv2.inpaint(img,mask,3,cv.INPAINT_TELEA)
46
  #masking(im, mask)
47
  #img_inpainted = cv2.inpaint(im, mask, 7, cv2.INPAINT_NS)
48
  #remove_text(im, mask, bounds)
49
  lang = ""
50
- cv.imshow('dst', dst)
51
  im.save('result.jpg')
52
  mask.save('mask.png')
53
  #final.save('final.png')
 
42
  #mask = PIL.Image.open(img.name)
43
  mask = Image.new("L", im.size, 0)
44
  draw_mask(mask, bounds)
45
+ dst = cv2.inpaint(img,mask,3,cv2.INPAINT_TELEA)
46
  #masking(im, mask)
47
  #img_inpainted = cv2.inpaint(im, mask, 7, cv2.INPAINT_NS)
48
  #remove_text(im, mask, bounds)
49
  lang = ""
50
+ cv2.imshow('dst', dst)
51
  im.save('result.jpg')
52
  mask.save('mask.png')
53
  #final.save('final.png')