23b719w commited on
Commit
24cff10
·
1 Parent(s): 0e69c68

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,8 +82,8 @@ label_id_offset = 0
82
  samples_folder = 'test_samples'
83
  # image_path = 'test_samples/image489.png'
84
 
85
- def video_fn(video_reader):
86
- #video_reader = cv2.VideoCapture(video_in_filepath)
87
 
88
  nb_frames = int(video_reader.get(cv2.CAP_PROP_FRAME_COUNT))
89
  frame_h = int(video_reader.get(cv2.CAP_PROP_FRAME_HEIGHT))
 
82
  samples_folder = 'test_samples'
83
  # image_path = 'test_samples/image489.png'
84
 
85
+ def video_fn(video_in_filepath):
86
+ video_reader = cv2.VideoCapture(video_in_filepath)
87
 
88
  nb_frames = int(video_reader.get(cv2.CAP_PROP_FRAME_COUNT))
89
  frame_h = int(video_reader.get(cv2.CAP_PROP_FRAME_HEIGHT))