muhammadzain commited on
Commit
5b15c87
·
1 Parent(s): eee9704

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -20,6 +20,7 @@ def inference():
20
  image = cv2.imread(secure_filename(file_name))
21
  os.system("uname -a")
22
  output = remove(image) # remove background
 
23
  cv2.imwrite(secure_filename(file.filename).split('.')[0]+'.png',output)
24
  print(secure_filename(file.filename).split('.'))
25
  os.system("ls -l")
 
20
  image = cv2.imread(secure_filename(file_name))
21
  os.system("uname -a")
22
  output = remove(image) # remove background
23
+ output = cv2.resize(output,(int(w*.79),int(h*.79)))
24
  cv2.imwrite(secure_filename(file.filename).split('.')[0]+'.png',output)
25
  print(secure_filename(file.filename).split('.'))
26
  os.system("ls -l")