Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,8 +52,8 @@ def morphing(inp, target, slider):
|
|
| 52 |
# Set rows and columns
|
| 53 |
# lets downsize the image using new width and height
|
| 54 |
down_width = int(frame_width)
|
| 55 |
-
down_height = int(frame_height)
|
| 56 |
-
down_points = (down_width, down_height
|
| 57 |
image = cv.resize(image, down_points, interpolation= cv.INTER_LINEAR)
|
| 58 |
yield image
|
| 59 |
# image = np.ones((240,240,3), np.uint8)
|
|
|
|
| 52 |
# Set rows and columns
|
| 53 |
# lets downsize the image using new width and height
|
| 54 |
down_width = int(frame_width)
|
| 55 |
+
down_height = int(frame_height/2)
|
| 56 |
+
down_points = (down_width, down_height)
|
| 57 |
image = cv.resize(image, down_points, interpolation= cv.INTER_LINEAR)
|
| 58 |
yield image
|
| 59 |
# image = np.ones((240,240,3), np.uint8)
|