spookyuser
commited on
Commit
·
299cfef
1
Parent(s):
2224f3b
Fix path
Browse files- animate.py +6 -4
animate.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import os
|
2 |
import sys
|
|
|
3 |
from pathlib import Path
|
4 |
|
5 |
import cv2
|
@@ -190,11 +191,12 @@ def get_video_frames(
|
|
190 |
|
191 |
frame1 = resize(256, frame1)
|
192 |
frame2 = resize(256, frame2)
|
|
|
|
|
|
|
|
|
193 |
|
194 |
-
|
195 |
-
frame2.save(Path(vid_output_dir / "test2.png"))
|
196 |
-
|
197 |
-
resize_img("test1.png", "test2.png", vid_output_dir)
|
198 |
input_frames = [
|
199 |
Path(vid_output_dir / "test1.png"),
|
200 |
Path(vid_output_dir / "resized_img2.png"),
|
|
|
1 |
import os
|
2 |
import sys
|
3 |
+
from cgi import test
|
4 |
from pathlib import Path
|
5 |
|
6 |
import cv2
|
|
|
191 |
|
192 |
frame1 = resize(256, frame1)
|
193 |
frame2 = resize(256, frame2)
|
194 |
+
test_1 = Path(vid_output_dir / "test1.png")
|
195 |
+
test_2 = Path(vid_output_dir / "test2.png")
|
196 |
+
frame1.save(test_1)
|
197 |
+
frame2.save(test_2)
|
198 |
|
199 |
+
resize_img(test_1, test_2, vid_output_dir)
|
|
|
|
|
|
|
200 |
input_frames = [
|
201 |
Path(vid_output_dir / "test1.png"),
|
202 |
Path(vid_output_dir / "resized_img2.png"),
|