Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|