Update MEMTrack/src/GenerateVideo.py
Browse files
MEMTrack/src/GenerateVideo.py
CHANGED
@@ -12,8 +12,9 @@ def create_video(data_dir, image_dir, video_name,fps):
|
|
12 |
height, width, channels = img_sample.shape
|
13 |
|
14 |
video = cv2.VideoWriter(data_dir + video_name + ".mp4", fourcc, fps, (width, height))
|
15 |
-
|
16 |
-
|
|
|
17 |
for frame in natsorted(os.listdir(image_dir)):
|
18 |
#print(frame)
|
19 |
img = cv2.imread(os.path.join(image_dir, frame))
|
|
|
12 |
height, width, channels = img_sample.shape
|
13 |
|
14 |
video = cv2.VideoWriter(data_dir + video_name + ".mp4", fourcc, fps, (width, height))
|
15 |
+
print("Image dir: ", image_dir)
|
16 |
+
print("Number of frames: ", len(os.listdir(image_dir)))
|
17 |
+
print("Video output fps: ", fps)
|
18 |
for frame in natsorted(os.listdir(image_dir)):
|
19 |
#print(frame)
|
20 |
img = cv2.imread(os.path.join(image_dir, frame))
|