Spaces:
Running
Running
Future-Tense
commited on
Commit
•
b3cf540
1
Parent(s):
11d71de
Update app.py
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ with gr.Blocks() as app:
|
|
133 |
#y_shape = int(player.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
134 |
#four_cc = cv2.VideoWriter_fourcc(*"MJPG") #Using MJPEG codex
|
135 |
#out = cv2.VideoWriter(out_vid, four_cc, 20,(x_shape, y_shape))
|
136 |
-
frame_num = player.get(
|
137 |
print (frame_num)
|
138 |
ret, frame = player.read(frame_num)
|
139 |
results = model.predict(frame)
|
|
|
133 |
#y_shape = int(player.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
134 |
#four_cc = cv2.VideoWriter_fourcc(*"MJPG") #Using MJPEG codex
|
135 |
#out = cv2.VideoWriter(out_vid, four_cc, 20,(x_shape, y_shape))
|
136 |
+
frame_num = player.get(cv2.CAP_PROP_POS_FRAMES)
|
137 |
print (frame_num)
|
138 |
ret, frame = player.read(frame_num)
|
139 |
results = model.predict(frame)
|