Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -25,10 +25,8 @@ LABEL_ANNOTATOR = sv.LabelAnnotator()
|
|
25 |
|
26 |
def calculate_end_frame_index(source_video_path):
|
27 |
video_info = sv.VideoInfo.from_video_path(source_video_path)
|
28 |
-
return
|
29 |
-
|
30 |
-
video_info.fps * 2
|
31 |
-
)
|
32 |
|
33 |
|
34 |
def annotate_image(
|
|
|
25 |
|
26 |
def calculate_end_frame_index(source_video_path):
|
27 |
video_info = sv.VideoInfo.from_video_path(source_video_path)
|
28 |
+
return video_info.total_frames
|
29 |
+
|
|
|
|
|
30 |
|
31 |
|
32 |
def annotate_image(
|