Spaces:
Running
Running
tori29umai
commited on
Update app.py
Browse files
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.
|
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)
|