Omnibus commited on
Commit
5c37a3b
·
1 Parent(s): bcc8c8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -70,8 +70,9 @@ def get_rate(vid_in):
70
  def load_video(vid):
71
  new_video_in = str(vid)
72
  capture = cv2.VideoCapture(new_video_in)
 
 
73
  frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
74
- tmp_frame='1'
75
  capture.release()
76
 
77
 
 
70
  def load_video(vid):
71
  new_video_in = str(vid)
72
  capture = cv2.VideoCapture(new_video_in)
73
+ fps = cap.get(cv.CAP_PROP_FPS)
74
+ print (f'FPS:: {fps}')
75
  frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
 
76
  capture.release()
77
 
78