medha12 commited on
Commit
1b4ea90
·
verified ·
1 Parent(s): c4831eb

Update MEMTrack/src/GenerateVideo.py

Browse files
Files changed (1) hide show
  1. MEMTrack/src/GenerateVideo.py +3 -2
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
- #data_dir = "./Data/video3/"
16
- #image_dir = os.path.join(_dir, "images")
 
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))