tori29umai commited on
Commit
989461d
·
verified ·
1 Parent(s): e9ad9f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def process_image(image_path):
23
  if height > max_height:
24
  height = max_height
25
  width = int(height * aspect_ratio)
26
- image = image.resize((width, height), Image.ANTIALIAS)
27
 
28
  # RGBからBGRに変換(cv2はBGRを使用する)
29
  image = np.array(image)
 
23
  if height > max_height:
24
  height = max_height
25
  width = int(height * aspect_ratio)
26
+ image = image.resize((width, height), Image.LANCZOS)
27
 
28
  # RGBからBGRに変換(cv2はBGRを使用する)
29
  image = np.array(image)