-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take the frame by sec #116
Comments
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
Hello,
|
Hi @sceddd 👋🏻! Thanks a lot for your interest in our project. Sorry for the late response. Here is how I would do that. import supervision as sv
VIDEO_PATH = 'video.mp4'
video_info = sv.VideoInfo.from_video_path(video_path=VIDEO_PATH)
for index, frame in enumerate(sv.get_video_frames_generator(source_path=VIDEO_PATH)):
if index % video_info.fps == 0:
sv.plot_image(frame) |
Hi @SkalskiP, Thanks for your reply. I already override your process_video() and do the same thing in the last comment. After all, I appreciate it. |
No worries :) In that case, I'm closing the issue. However, I'm thinking about adding it as a feature in |
Search before asking
Question
Is there any way to collect the frame by sec, like if i have a clip length 400sec, then i'll have a list 400 frame? I have search through process_video() and figure out it took the frame base on the index of the frame.
Additional
No response
The text was updated successfully, but these errors were encountered: