Update app.py
Browse files
app.py
CHANGED
@@ -49,11 +49,10 @@ def display_gif_pad(file_name, save_name):
|
|
49 |
image_filename = file_name + frame_name + '.png'
|
50 |
image = imageio.imread(image_filename)
|
51 |
image = image[:, :, :3]
|
52 |
-
image_pad = cv2.copyMakeBorder(image, 0, 0,
|
53 |
images.append(image_pad)
|
54 |
|
55 |
-
|
56 |
-
return imageio.mimsave(gif_filename, images)
|
57 |
|
58 |
|
59 |
def display_image(file_name):
|
|
|
49 |
image_filename = file_name + frame_name + '.png'
|
50 |
image = imageio.imread(image_filename)
|
51 |
image = image[:, :, :3]
|
52 |
+
image_pad = cv2.copyMakeBorder(image, 0, 0, 125, 125, cv2.BORDER_CONSTANT, value=0)
|
53 |
images.append(image_pad)
|
54 |
|
55 |
+
return imageio.mimsave(save_name, images)
|
|
|
56 |
|
57 |
|
58 |
def display_image(file_name):
|