Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,13 @@ def filter_img(input_img,filter_type):
|
|
14 |
#img = np.array(img)
|
15 |
# Reading in as JPG format
|
16 |
img = cv2.imread(input_img)
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
filtered_img = np.zeros(img.shape, dtype=int)
|
20 |
|
|
|
14 |
#img = np.array(img)
|
15 |
# Reading in as JPG format
|
16 |
img = cv2.imread(input_img)
|
17 |
+
|
18 |
+
new_height = 1080
|
19 |
+
|
20 |
+
ratio = float(new_height) / img.shape[0]
|
21 |
+
new_width = int(img.shape[1] * ratio)
|
22 |
+
|
23 |
+
img = cv2.resize(img, (new_width,new_height))
|
24 |
|
25 |
filtered_img = np.zeros(img.shape, dtype=int)
|
26 |
|