zhiweili
commited on
Commit
·
55c1cea
1
Parent(s):
a362aff
fix not defined
Browse files- app_enhance.py +2 -1
app_enhance.py
CHANGED
@@ -69,7 +69,8 @@ def enhance_image(
|
|
69 |
# interpolation = cv2.INTER_AREA if scale < 2 else cv2.INTER_LANCZOS4
|
70 |
# h, w = img.shape[0:2]
|
71 |
# output = cv2.resize(output, (int(w * scale / 2), int(h * scale / 2)), interpolation=interpolation)
|
72 |
-
|
|
|
73 |
max_size = 3480
|
74 |
if h > max_size:
|
75 |
w = int(w * max_size / h)
|
|
|
69 |
# interpolation = cv2.INTER_AREA if scale < 2 else cv2.INTER_LANCZOS4
|
70 |
# h, w = img.shape[0:2]
|
71 |
# output = cv2.resize(output, (int(w * scale / 2), int(h * scale / 2)), interpolation=interpolation)
|
72 |
+
|
73 |
+
h, w = img.shape[0:2]
|
74 |
max_size = 3480
|
75 |
if h > max_size:
|
76 |
w = int(w * max_size / h)
|