Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,9 @@ def get_frames(video_in, step, name):
|
|
42 |
frames = []
|
43 |
#resize the video
|
44 |
clip = cv2.VideoCapture(video_in)
|
45 |
-
cframes = int(
|
46 |
-
cfps = int(
|
47 |
-
print(f'
|
48 |
|
49 |
#clip = VideoFileClip(video_in)
|
50 |
|
|
|
42 |
frames = []
|
43 |
#resize the video
|
44 |
clip = cv2.VideoCapture(video_in)
|
45 |
+
cframes = int(clip.get(cv2.CAP_PROP_FRAME_COUNT))
|
46 |
+
cfps = int(clip.get(cv2.CAP_PROP_FPS))
|
47 |
+
print(f'Frames {cframes} fps: {cfps}')
|
48 |
|
49 |
#clip = VideoFileClip(video_in)
|
50 |
|