Update app.py
Browse files
app.py
CHANGED
@@ -87,8 +87,8 @@ def get_frames(video_in, step, name, resize_w):
|
|
87 |
|
88 |
def create_video(frames, fps, type):
|
89 |
print("building video result")
|
90 |
-
|
91 |
-
|
92 |
|
93 |
mediapy.write_video(type + "_result.mp4", frames, fps=fps)
|
94 |
|
|
|
87 |
|
88 |
def create_video(frames, fps, type):
|
89 |
print("building video result")
|
90 |
+
for j, img in enumerate(frames):
|
91 |
+
frames[j] = cv2.imread(img).astype(np.uint8)
|
92 |
|
93 |
mediapy.write_video(type + "_result.mp4", frames, fps=fps)
|
94 |
|