Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,8 @@ def get_frames(video_in, step, name, resize_w):
|
|
| 88 |
def create_video(frames, fps, type):
|
| 89 |
print("building video result")
|
| 90 |
for j, img in enumerate(frames):
|
| 91 |
-
|
|
|
|
| 92 |
|
| 93 |
#https://zulko.github.io/moviepy/getting_started/videoclips.html#mask-clips
|
| 94 |
|
|
|
|
| 88 |
def create_video(frames, fps, type):
|
| 89 |
print("building video result")
|
| 90 |
for j, img in enumerate(frames):
|
| 91 |
+
img = cv2.imread(img).astype(np.uint8)
|
| 92 |
+
cv2.imwrite(frames[j], cv2.cvtColor(img, cv2.COLOR_RGB2RGBA))
|
| 93 |
|
| 94 |
#https://zulko.github.io/moviepy/getting_started/videoclips.html#mask-clips
|
| 95 |
|