Update app.py
Browse files
app.py
CHANGED
@@ -192,9 +192,9 @@ def mask_rembg(input_img):
|
|
192 |
def process_image(input_img):
|
193 |
|
194 |
rotated = False
|
195 |
-
if input_img.shape[0] > input_img.shape[1]:
|
196 |
-
|
197 |
-
|
198 |
input_img = cv2.resize(input_img, (640, 480))
|
199 |
mask, rgb = mask_rembg(input_img)
|
200 |
depth_dict = depth_moge(input_img)
|
|
|
192 |
def process_image(input_img):
|
193 |
|
194 |
rotated = False
|
195 |
+
# if input_img.shape[0] > input_img.shape[1]:
|
196 |
+
# input_img = cv2.rotate(input_img, cv2.ROTATE_90_COUNTERCLOCKWISE)
|
197 |
+
# rotated = True
|
198 |
input_img = cv2.resize(input_img, (640, 480))
|
199 |
mask, rgb = mask_rembg(input_img)
|
200 |
depth_dict = depth_moge(input_img)
|