medha12 commited on
Commit
c38c5c1
1 Parent(s): b752c31

Update MEMTrack/src/GenerateVideo.py

Browse files
Files changed (1) hide show
  1. MEMTrack/src/GenerateVideo.py +4 -1
MEMTrack/src/GenerateVideo.py CHANGED
@@ -9,11 +9,14 @@ def create_video(data_dir, image_dir, video_name,fps, all_image_path=None, all_i
9
  #print(data_dir)
10
  plotted_images = natsorted(os.listdir(image_dir))
11
  images = plotted_images
 
12
  if all_images:
13
  all_images_list = natsorted(os.listdir(all_image_path))
14
  images = all_images_list
 
15
 
16
- img_sample = cv2.imread(os.path.join(image_dir,images[0]))
 
17
  print(images[0])
18
  print(img_sample.shape)
19
  height, width, channels = img_sample.shape
 
9
  #print(data_dir)
10
  plotted_images = natsorted(os.listdir(image_dir))
11
  images = plotted_images
12
+ sample_image_dir = image_dir
13
  if all_images:
14
  all_images_list = natsorted(os.listdir(all_image_path))
15
  images = all_images_list
16
+ sample_image_dir = all_image_path
17
 
18
+
19
+ img_sample = cv2.imread(os.path.join(sample_image_dir,images[0]))
20
  print(images[0])
21
  print(img_sample.shape)
22
  height, width, channels = img_sample.shape