jflo commited on
Commit
d6dc447
1 Parent(s): 6ac88ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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
- img = cv2.resize(img, (1280,720))
 
 
 
 
 
 
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